summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/blogs/HubView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/blogs/HubView.js')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/HubView.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js
index e06faf44..b80d323c 100755
--- a/StoneIsland/www/js/lib/blogs/HubView.js
+++ b/StoneIsland/www/js/lib/blogs/HubView.js
@@ -110,6 +110,8 @@ var HubView = ScrollableView.extend({
play.className = "play"
$(".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))
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];
@@ -128,6 +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')
@@ -145,7 +148,9 @@ var HubView = ScrollableView.extend({
share: function(e){
var title = $(e.currentTarget).parent().find(".title").text()
console.log("share", title)
- window.plugins.socialsharing.share(title, null, null, "http://deeplink.me/www.stoneisland.com/hub" )
+ if (window.plugins && window.plugins.socialsharing) {
+ window.plugins.socialsharing.share(title, null, null, "http://deeplink.me/www.stoneisland.com/hub" )
+ }
},
})
@@ -172,7 +177,7 @@ var HubLoader = (function(){
if (item.image && item.image.length) {
loader = new Loader (HubLoader.build)
images = item.image.map(function(img){
- return img.uri.replace("http:","https:")
+ return img.uri.replace("http:", "https:")
}).filter(function(img){
return img.uri
})