summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products/ProductView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-01-21 02:52:58 +0100
committerJules Laplace <jules@okfoc.us>2016-01-21 02:52:58 +0100
commitca3ae3a43bb47cb2b97b6878ea28d9eef0db25ca (patch)
tree25fa739cd34bd3f9eb47287bf39624011ae879d3 /StoneIsland/www/js/lib/products/ProductView.js
parent33bb292fa3a37c1398559771e5a682d8d84c56d3 (diff)
scroll to field, archive fix, hide not available
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
-rwxr-xr-xStoneIsland/www/js/lib/products/ProductView.js3
1 files changed, 3 insertions, 0 deletions
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)