summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/HubView.js4
-rwxr-xr-xStoneIsland/www/js/lib/cart/CartSummary.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js
index b80d323c..c4ebd716 100755
--- a/StoneIsland/www/js/lib/blogs/HubView.js
+++ b/StoneIsland/www/js/lib/blogs/HubView.js
@@ -111,7 +111,7 @@ var HubView = ScrollableView.extend({
$(".gallery-" + row.id).append(play)
$(".gallery-" + row.id).addClass("gallery-video-post")
$(".gallery-" + row.id).attr('role', 'link')
- $(".gallery-" + row.id).attr('aria-label', stonewash(row.title))
+ $(".gallery-" + row.id).attr('aria-label', stonewash(row.title) + ". Watch the video on Youtube")
if (! row.image) {
var url = row.link
var ytid = (url.match(/v=([-_a-zA-Z0-9]{11})/i) || url.match(/youtu.be\/([-_a-zA-Z0-9]{11})/i) || url.match(/embed\/([-_a-zA-Z0-9]{11})/i))[1].split('&')[0];
@@ -130,7 +130,7 @@ var HubView = ScrollableView.extend({
store_link: function(){
app.router.go("store")
},
-
+
play_video: function(e){
var row = $(e.currentTarget).closest('.gallery-video-post').data("row")
window.open(row.link, '_system')
diff --git a/StoneIsland/www/js/lib/cart/CartSummary.js b/StoneIsland/www/js/lib/cart/CartSummary.js
index 0a45d937..bf150791 100755
--- a/StoneIsland/www/js/lib/cart/CartSummary.js
+++ b/StoneIsland/www/js/lib/cart/CartSummary.js
@@ -75,7 +75,6 @@ var CartSummary = ScrollableView.extend({
this.$rows.append($el)
app.product.find(code, function(data, details){
// console.log(data, details)
-
var descriptions = app.product.get_descriptions( details )
// console.log(descriptions)
@@ -110,7 +109,8 @@ var CartSummary = ScrollableView.extend({
var t = this.template
.replace(/{{image}}/, sdk.image(item['Code10'], '11_f'))
- .replace(/{{sku}}/, num)
+ .replace(/{{sku}}/g, num)
+ .replace(/{{code8}}/g, data['Code8'])
.replace(/{{title}}/g, title)
.replace(/{{cleantitle}}/g, stonewash(title))
.replace(/{{type}}/, type)