summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
authorRene Ae <aehtyb@gmail.com>2015-12-11 19:22:07 -0600
committerRene Ae <aehtyb@gmail.com>2015-12-11 19:22:07 -0600
commit2ba67b188059b685cea2bab2a3aa4a1d26c75a31 (patch)
treeba49852e2214ba3970170c691d8b31cc93069311 /StoneIsland/www/js
parentd8de54120038aee2e4c6fc1c638d49be8ac73452 (diff)
parentb6e73d3c1af0fc929916c9e4d63d125a96cbb996 (diff)
Merge branch 'android' of https://github.com/okfocus/stone-island into android
Diffstat (limited to 'StoneIsland/www/js')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/PageView.js7
-rwxr-xr-xStoneIsland/www/js/lib/nav/FooterView.js1
-rwxr-xr-xStoneIsland/www/js/lib/products/Selector.js2
3 files changed, 8 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
diff --git a/StoneIsland/www/js/lib/nav/FooterView.js b/StoneIsland/www/js/lib/nav/FooterView.js
index 74b249e6..8641668f 100755
--- a/StoneIsland/www/js/lib/nav/FooterView.js
+++ b/StoneIsland/www/js/lib/nav/FooterView.js
@@ -10,6 +10,7 @@ var FooterView = View.extend({
initialize: function(){
this.$ok = this.$(".ok")
this.$cancel = this.$(".cancel")
+ this.hide()
},
show: function(ok, cancel){
diff --git a/StoneIsland/www/js/lib/products/Selector.js b/StoneIsland/www/js/lib/products/Selector.js
index 17278a06..4e23ba1f 100755
--- a/StoneIsland/www/js/lib/products/Selector.js
+++ b/StoneIsland/www/js/lib/products/Selector.js
@@ -44,6 +44,8 @@ var Selector = View.extend({
},
pick: function(e){
+ e.preventDefault()
+ e.stopPropagation()
var $option = $(e.currentTarget)
var id = String($option.data("id"))
var selection = this.lookup[id]