summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/view
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/view')
-rwxr-xr-xStoneIsland/www/js/lib/view/Serializable.js2
-rwxr-xr-xStoneIsland/www/js/lib/view/View.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/StoneIsland/www/js/lib/view/Serializable.js b/StoneIsland/www/js/lib/view/Serializable.js
index 921dc275..98aa8ce3 100755
--- a/StoneIsland/www/js/lib/view/Serializable.js
+++ b/StoneIsland/www/js/lib/view/Serializable.js
@@ -4,7 +4,7 @@ var SerializableView = View.extend({
"change select": "update_select",
"change [type=date]": "update_date",
"focus input": "focus_input",
- "touchstart .date-wrapper": "focus_date",
+ "click .date-wrapper": "focus_date",
"submit form": "save",
},
diff --git a/StoneIsland/www/js/lib/view/View.js b/StoneIsland/www/js/lib/view/View.js
index 70d2c7eb..fe145221 100755
--- a/StoneIsland/www/js/lib/view/View.js
+++ b/StoneIsland/www/js/lib/view/View.js
@@ -64,9 +64,9 @@ var View = (function($, _){
if (eventName === 'mouseenter' || eventName === 'mouseleave') {
continue
}
- if (eventName === 'click') {
- eventName = 'touchstart'
- }
+ if (is_android && eventName === 'click') {
+ eventName = 'touchstart'
+ }
}
if (selector === '') {
this.$el.on(eventName, method);