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/blogs/BlogView.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'StoneIsland/www/js/lib/blogs/BlogView.js') 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") -- cgit v1.2.3-70-g09d2