diff options
Diffstat (limited to 'StoneIsland/www/js/lib/blogs/BlogView.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/blogs/BlogView.js | 11 |
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") |
