diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-01-28 18:40:45 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-01-28 18:40:45 +0100 |
| commit | 0b40e1e779719b68e29193d10cb13a18deb46a1e (patch) | |
| tree | 54dafbad1d5582c68ae65357973ec1351ed20d03 /StoneIsland/www/js | |
| parent | e86301effc76072d3dc14b1427d403d1e6c1e5da (diff) | |
fix video bug and show/hide filter
Diffstat (limited to 'StoneIsland/www/js')
| -rwxr-xr-x | StoneIsland/www/js/lib/blogs/HubView.js | 1 | ||||
| -rwxr-xr-x | StoneIsland/www/js/lib/products/CollectionView.js | 17 |
2 files changed, 16 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js index 9433b686..e73e49a7 100755 --- a/StoneIsland/www/js/lib/blogs/HubView.js +++ b/StoneIsland/www/js/lib/blogs/HubView.js @@ -93,6 +93,7 @@ var HubView = ScrollableView.extend({ var play = document.createElement("div") play.className = "play" $(".gallery-" + row.id).append(play) + $(".gallery-" + row.id).addClass("gallery-video-post") } $t.find(".gallery-left").remove() $t.find(".gallery-right").remove() diff --git a/StoneIsland/www/js/lib/products/CollectionView.js b/StoneIsland/www/js/lib/products/CollectionView.js index a3b32988..033992a6 100755 --- a/StoneIsland/www/js/lib/products/CollectionView.js +++ b/StoneIsland/www/js/lib/products/CollectionView.js @@ -33,7 +33,12 @@ var CollectionView = ScrollableView.extend({ if (sdk.env !== "test" && app.closed.storeIsClosed) { return app.closed.show() } - app.footer.show("FILTER") + if (this.data && this.data.SearchResponseFull.Results.Items.length == 1) { + app.footer.hide() + } + else { + app.footer.show("FILTER") + } document.body.className = "collection" if (this.loaded) { console.log("collection this loaded") @@ -83,8 +88,16 @@ var CollectionView = ScrollableView.extend({ this.$loader.hide() this.$content.empty() // DefaultCode10 -// data.SearchResponseFull.Results.Items.length = 1 + data.SearchResponseFull.Results.Items.length = 1 this.$content.toggleClass("single", (data.SearchResponseFull.Results.Items.length == 1)) + + if (data.SearchResponseFull.Results.Items.length == 1) { + app.footer.hide() + } + else { + app.footer.show("FILTER") + } + data.SearchResponseFull.Results.Items.forEach(this.append.bind(this)) this.deferScrollToTop() } |
