aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-07-25 13:14:27 +0100
committerStruan Donald <struan@exo.org.uk>2013-07-25 13:14:27 +0100
commit07baf673d3c984588071c0dd505f91992c135104 (patch)
tree2495ef5b2e0c5c3efda09618cfa50fc8ef22e085 /src
parenta0f1bef364b191fc56464de09b776173b01dae8b (diff)
redisplay the corsshairs if the user touches the map. Fixes #5
Diffstat (limited to 'src')
-rw-r--r--src/js/views/around.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/views/around.js b/src/js/views/around.js
index 0c82e45..cfe039d 100644
--- a/src/js/views/around.js
+++ b/src/js/views/around.js
@@ -8,6 +8,7 @@
'pagehide': 'destroy',
'pagebeforeshow': 'beforeDisplay',
'pageshow': 'afterDisplay',
+ 'touchstart #map': 'mapTouchStart',
'vclick #locate_cancel': 'goSearch',
'vclick #login-options': 'goLogin',
'vclick #view-my-reports': 'goReports',
@@ -199,6 +200,10 @@
fixmystreet.report_location.setVisibility(true);
},
+ mapTouchStart: function(e) {
+ $('#OpenLayers_Control_Crosshairs_crosshairs').show();
+ },
+
onClickMark: function(e) {
e.preventDefault();
this.displayButtons(true);