summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/blogs/BlogView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-01-20 03:38:41 +0100
committerJules Laplace <jules@okfoc.us>2016-01-20 03:38:41 +0100
commit1b574b3294d3d5db37a3d1e180f5dbdd8ba78796 (patch)
tree39ea6a03712b098d15734a7f8fcdf98d8dca9e9e /StoneIsland/www/js/lib/blogs/BlogView.js
parent77adbf331bb592b9a4e5e12a7507b372ef812ec0 (diff)
if env is test, make store open
Diffstat (limited to 'StoneIsland/www/js/lib/blogs/BlogView.js')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/BlogView.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/StoneIsland/www/js/lib/blogs/BlogView.js b/StoneIsland/www/js/lib/blogs/BlogView.js
index a53f0490..c1daf656 100755
--- a/StoneIsland/www/js/lib/blogs/BlogView.js
+++ b/StoneIsland/www/js/lib/blogs/BlogView.js
@@ -68,10 +68,13 @@ var BlogView = View.extend({
console.log(data.store[0].StoreStatus)
- var fits_large = (data.store[0].FitsLarge === "true")
- app.product.$fit.toggle( fits_large )
- app.product.$sizing.toggle( fits_large )
-
+ app.product.fitLargeCodes = {}
+ if (data.store[0].FittingCodes.length) {
+ data.store[0].FittingCodes.split("\n").forEach(function(code){
+ app.product.fitLargeCodes[code] = true
+ })
+ }
+
if (data.store[0].BackgroundIsGray === "true") {
app.collection.$el.addClass("gray")
app.product.gallery.$el.addClass("gray")