From ca3ae3a43bb47cb2b97b6878ea28d9eef0db25ca Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 21 Jan 2016 02:52:58 +0100 Subject: scroll to field, archive fix, hide not available --- StoneIsland/www/js/lib/products/ProductView.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'StoneIsland/www/js/lib/products/ProductView.js') diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index cb9a0c5a..9ce4a1f3 100755 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -26,6 +26,7 @@ var ProductView = ScrollableView.extend({ this.$body = this.$(".body") this.$fit = this.$(".fit") this.$sizing = this.$(".sizing") + this.$style = this.$(".style") }, show: function(){ @@ -124,10 +125,12 @@ var ProductView = ScrollableView.extend({ var default_color_id = this.populate_selectors(data, details) if (this.not_available) { + this.$style.css("opacity", 0) this.$color.html("NOT AVAILABLE") this.$size.hide() } else { + this.$style.css("opacity", 1) var color = this.colors[default_color_id] var color_label = color.label var sizes = this.find_sizes_for_color(default_color_id) -- cgit v1.2.3-70-g09d2