summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products/ProductView.js
diff options
context:
space:
mode:
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)