diff options
| -rwxr-xr-x | StoneIsland/www/index.html | 14 | ||||
| -rwxr-xr-x | StoneIsland/www/js/lib/blogs/HubView.js | 4 | ||||
| -rwxr-xr-x | StoneIsland/www/js/lib/cart/CartSummary.js | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/StoneIsland/www/index.html b/StoneIsland/www/index.html index c575353e..664b2df0 100755 --- a/StoneIsland/www/index.html +++ b/StoneIsland/www/index.html @@ -742,16 +742,16 @@ <div class="rows"> <script type="text/html" class="template"> <div class="cart_item_image"> - <a href="#/store/{{sku}}"><img src="{{image}}"></a> + <a href="#/store/{{code8}}" aria-label="{{cleantitle}}"><img src="{{image}}"></a> </div> <div class="cart_item_info"> - <span class="sku">{{sku}}</span> - <span class="title">{{title}}</span> - <span class="type">{{type}}</span> + <span class="sku" aria-label="SKU">{{sku}}</span> + <span class="title" aria-label="Product name: {{cleantitle}}">{{title}}</span> + <span class="type" aria-label="Product type">{{type}}</span> <div class="meta"> - <div class="meta-size"><b>SIZE:</b> {{size}}</div> - <div class="meta-color"><b>COLOR:</b> {{color}}</div> - <div class="meta-quantity"><b>QUANTITY:</b> {{quantity}}</div> + <div class="meta-size" aria-label="Size"><b>SIZE:</b> {{size}}</div> + <div class="meta-color" aria-label="Color"><b>COLOR:</b> {{color}}</div> + <div class="meta-quantity" aria-label="Quantity"><b>QUANTITY:</b> {{quantity}}</div> </div> </div> <div class="cart_item_price"> 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) |
