summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products/ProductView.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-01 00:44:44 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-01 00:44:44 +0200
commit881ad16da91e0b999f0f354b10bc84b9fcfb5e42 (patch)
tree9f6272b39e621bdb28ae42109b79f2b0091d006f /StoneIsland/www/js/lib/products/ProductView.js
parent461fb1258a2ba96d99d9cdb4e1956492f4c9fe7f (diff)
red text
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.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)