summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib')
-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]