diff options
| author | Rene Ae <aehtyb@gmail.com> | 2015-12-11 19:22:07 -0600 |
|---|---|---|
| committer | Rene Ae <aehtyb@gmail.com> | 2015-12-11 19:22:07 -0600 |
| commit | 2ba67b188059b685cea2bab2a3aa4a1d26c75a31 (patch) | |
| tree | ba49852e2214ba3970170c691d8b31cc93069311 /StoneIsland/www/js/lib/blogs/PageView.js | |
| parent | d8de54120038aee2e4c6fc1c638d49be8ac73452 (diff) | |
| parent | b6e73d3c1af0fc929916c9e4d63d125a96cbb996 (diff) | |
Merge branch 'android' of https://github.com/okfocus/stone-island into android
Diffstat (limited to 'StoneIsland/www/js/lib/blogs/PageView.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/blogs/PageView.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/blogs/PageView.js b/StoneIsland/www/js/lib/blogs/PageView.js index c399a2a9..f5f8ab2e 100755 --- a/StoneIsland/www/js/lib/blogs/PageView.js +++ b/StoneIsland/www/js/lib/blogs/PageView.js @@ -1,7 +1,7 @@ var PageView = ScrollableView.extend({ events: { - "touchstart a": "follow_link" + "click a": "follow_link" }, initialize: function(opt){ @@ -31,8 +31,11 @@ var PageView = ScrollableView.extend({ }, follow_link: function(e){ + e.stopPropagation() + e.preventDefault() var href = $(e.currentTarget).attr("href") - window.open(row.link, '_system') + console.log(href) + window.open(href, '_system') }, })
\ No newline at end of file |
