diff options
author | Struan Donald <struan@exo.org.uk> | 2013-07-25 13:14:27 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-07-25 13:14:27 +0100 |
commit | 07baf673d3c984588071c0dd505f91992c135104 (patch) | |
tree | 2495ef5b2e0c5c3efda09618cfa50fc8ef22e085 /src | |
parent | a0f1bef364b191fc56464de09b776173b01dae8b (diff) |
redisplay the corsshairs if the user touches the map. Fixes #5
Diffstat (limited to 'src')
-rw-r--r-- | src/js/views/around.js | 5 |
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); |