diff options
| author | Rene Ae <aehtyb@gmail.com> | 2015-11-30 15:41:48 -0600 |
|---|---|---|
| committer | Rene Ae <aehtyb@gmail.com> | 2015-11-30 15:41:48 -0600 |
| commit | 6dc48c07b81b12eb38f237718579bd333b5a4688 (patch) | |
| tree | 37afb0660142e7d0fde2e2c26d19d375a48ecc93 /StoneIsland/www/js/lib/products/ProductView.js | |
| parent | c6adcec5801e7f489555da76e05ebd1249b44512 (diff) | |
| parent | beab45b8029b3687eed647ca2956952817a33aa2 (diff) | |
Merge branch 'master' of https://github.com/okfocus/stone-island
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/products/ProductView.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index eacfe989..87b386d3 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -168,9 +168,17 @@ var ProductView = ScrollableView.extend({ sizes: {}, } }) + console.log(details['Item']['ModelSizes']) + ClassFamily: "inches" + Text: "34" + details['Item']['ModelSizes'].forEach(function(size){ var label = SIZE_LOOKUP[ size['Default']['Text'] ] + if (! label && ! size['Default']['Labeled']) { + label = size['Default']['Text'] + " " + size['Default']['ClassFamily'] + } size_lookup[ label ] = size['SizeId'] + console.log( label ) sizes[ size['SizeId'] ] = { id: label, label: label.toUpperCase(), |
