summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xStoneIsland/www/css/products.css10
-rwxr-xr-xStoneIsland/www/js/lib/products/ProductView.js9
2 files changed, 16 insertions, 3 deletions
diff --git a/StoneIsland/www/css/products.css b/StoneIsland/www/css/products.css
index 1f858898..532beb69 100755
--- a/StoneIsland/www/css/products.css
+++ b/StoneIsland/www/css/products.css
@@ -232,9 +232,9 @@
}
#collection .content {
-position:relative;
-padding-top:45px;
-padding-bottom:45px;
+ position:relative;
+ padding-top:45px;
+ padding-bottom:45px;
}
#collection h1 {
@@ -252,3 +252,7 @@ padding-bottom:45px;
z-index:9
}
+.red {
+ color: red;
+}
+
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)