diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-01-20 03:38:41 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-01-20 03:38:41 +0100 |
| commit | 1b574b3294d3d5db37a3d1e180f5dbdd8ba78796 (patch) | |
| tree | 39ea6a03712b098d15734a7f8fcdf98d8dca9e9e /StoneIsland/www/js/lib/products | |
| parent | 77adbf331bb592b9a4e5e12a7507b372ef812ec0 (diff) | |
if env is test, make store open
Diffstat (limited to 'StoneIsland/www/js/lib/products')
| -rwxr-xr-x | StoneIsland/www/js/lib/products/CollectionView.js | 2 | ||||
| -rwxr-xr-x | StoneIsland/www/js/lib/products/ProductView.js | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/products/CollectionView.js b/StoneIsland/www/js/lib/products/CollectionView.js index 74c5ad82..c1088b5f 100755 --- a/StoneIsland/www/js/lib/products/CollectionView.js +++ b/StoneIsland/www/js/lib/products/CollectionView.js @@ -25,7 +25,7 @@ var CollectionView = ScrollableView.extend({ }, show: function(){ - if (app.closed.storeIsClosed) { + if (sdk.env !== "test" && app.closed.storeIsClosed) { return app.closed.show() } app.footer.show("FILTER") 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() |
