summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/blogs/PageView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-11 13:07:09 -0600
committerJules Laplace <jules@okfoc.us>2015-12-11 13:07:09 -0600
commit0bef350be2ea4ea67655e83633c6f8f5b6c04695 (patch)
treeeb76fbf009b62dd6edf870c6a93ef4b915fdc507 /StoneIsland/www/js/lib/blogs/PageView.js
parent5680371ea44af2bd576e9b936c9e43ee5ab47376 (diff)
fix youtube link!
Diffstat (limited to 'StoneIsland/www/js/lib/blogs/PageView.js')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/PageView.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/blogs/PageView.js b/StoneIsland/www/js/lib/blogs/PageView.js
index fab3ff53..c399a2a9 100755
--- a/StoneIsland/www/js/lib/blogs/PageView.js
+++ b/StoneIsland/www/js/lib/blogs/PageView.js
@@ -1,6 +1,7 @@
var PageView = ScrollableView.extend({
events: {
+ "touchstart a": "follow_link"
},
initialize: function(opt){
@@ -28,5 +29,10 @@ var PageView = ScrollableView.extend({
$(this).attr("target", "_system")
})
},
+
+ follow_link: function(e){
+ var href = $(e.currentTarget).attr("href")
+ window.open(row.link, '_system')
+ },
}) \ No newline at end of file