diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-03 00:54:16 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-03 00:54:16 +0200 |
| commit | e0ec54dc4748e393df7bf06effb9a88085311fbf (patch) | |
| tree | f656cc29453fff060151d4213417cea6f260d19b | |
| parent | 0bcdc4a3b962a3a9df624ceb41ffc096d913b01e (diff) | |
type
| -rwxr-xr-x | StoneIsland/www/js/lib/products/ProductView.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 502347af..f948cb91 100755 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -181,20 +181,20 @@ var ProductView = ScrollableView.extend({ this.details = details['Item'] this.code = data['DefaultCode10'] - this.$type.html(type) console.log( data['DefaultCode10'] ) title += "<br>EXTREME COMPACTING ON NYLON BASE<br>LIMITED EDITION - NUMBERED 01 TO 100" if (title.indexOf('<br>') !== -1) { var title_lines = title.split('<br>').map(function(s){ if (s.indexOf("LIMITED EDITION") !== -1) { - this.$type.html("<span class='red'>" + s + "</span>") - return '' + return "<span class='red'>" + s + "</span>" + // return '' } return s }.bind(this)) title = title_lines.join('<br><br>') } this.$title.html(title) + this.$type.html(type) this.$price.html(price) this.$body.html(body) |
