diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-11-07 12:18:58 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-11-07 12:18:58 -0500 |
| commit | 6a5503ebeefb8fe9f987b666d8751622f2375782 (patch) | |
| tree | 59fcb0d5bf9b8f59c560facd3b37244fdefbce2d | |
| parent | deb3e8c4705647505d54439e0c7f8fe5ffc23551 (diff) | |
Color Way Mismatch
| -rwxr-xr-x | StoneIsland/www/js/lib/products/ProductView.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 369c9ce0..a97cba23 100755 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -113,8 +113,6 @@ var ProductView = ScrollableView.extend({ var descriptions = this.get_descriptions(details) - this.gallery.populate( data['Code8'], details['Item']['ImageTypes'] ) - var name_partz = data['ModelNames'].split(' ') var num = name_partz.shift() var title = name_partz.join(' ') @@ -128,15 +126,19 @@ var ProductView = ScrollableView.extend({ this.$style.css("opacity", 0) this.$color.html("NOT AVAILABLE") this.$size.hide() + this.gallery.populate( data['Code8'], details['Item']['ImageTypes'] ) } else { this.$style.css("opacity", 1) + var color = this.colors[default_color_id] var color_label = color.label var sizes = this.find_sizes_for_color(default_color_id) var size = sizes[0] var size_label = this.sizes[size].label + this.gallery.populate( color.code, details['Item']['ImageTypes'] ) + this.color = color this.size = size |
