summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js')
-rwxr-xr-xStoneIsland/www/js/lib/products/ProductView.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js
index 214819cf..97654a3f 100755
--- a/StoneIsland/www/js/lib/products/ProductView.js
+++ b/StoneIsland/www/js/lib/products/ProductView.js
@@ -183,6 +183,15 @@ var ProductView = ScrollableView.extend({
console.log( data['DefaultCode10'] )
+ if (title.indexOf('<br>') !== -1) {
+ var title_lines = title.split('<br>').map(function(s){
+ if (s.indexOf("LIMITED EDITION")) {
+ return "<span class='red'>" + s + "</span>"
+ }
+ return s
+ })
+ title = title_lines.join('<br><br>')
+ }
this.$title.html(title)
this.$type.html(type)
this.$price.html(price)