From 1b574b3294d3d5db37a3d1e180f5dbdd8ba78796 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 20 Jan 2016 03:38:41 +0100 Subject: if env is test, make store open --- StoneIsland/www/js/lib/products/ProductView.js | 7 +++++++ 1 file changed, 7 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 484cd442..5cfb0b50 100755 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -50,6 +50,7 @@ var ProductView = ScrollableView.extend({ color: null, code: null, is_onesize: false, + fitLargeCodes: {}, sizes: null, colors: null, @@ -152,6 +153,8 @@ var ProductView = ScrollableView.extend({ this.item = data this.details = details['Item'] this.code = data['DefaultCode10'] + + console.log( data['DefaultCode10'] ) this.$num.html(num) this.$title.html(title) @@ -159,6 +162,10 @@ var ProductView = ScrollableView.extend({ this.$price.html(price) this.$body.html(body) + var fits_large = !! this.fitLargeCodes[this.code] + app.product.$fit.toggle( fits_large ) + app.product.$sizing.toggle( fits_large ) + this.showFooter() this.deferScrollToTop() -- cgit v1.2.3-70-g09d2