summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-01-28 18:40:45 +0100
committerJules Laplace <jules@okfoc.us>2016-01-28 18:40:45 +0100
commit0b40e1e779719b68e29193d10cb13a18deb46a1e (patch)
tree54dafbad1d5582c68ae65357973ec1351ed20d03 /StoneIsland/www/js
parente86301effc76072d3dc14b1427d403d1e6c1e5da (diff)
fix video bug and show/hide filter
Diffstat (limited to 'StoneIsland/www/js')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/HubView.js1
-rwxr-xr-xStoneIsland/www/js/lib/products/CollectionView.js17
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()
}