aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2018-06-07 14:36:19 +0200
committerMarius Halden <marius.h@lden.org>2018-06-07 14:36:19 +0200
commit56f61b1441070aa0b9ddcfc74aca46c20313609f (patch)
treebf99e1374148b94c58e6bc5473fac98310c3e588 /web/js/map-OpenLayers.js
parent956f8b8a065824f9a9dc379eba1d0aa8b1b669cf (diff)
parent80cf37ef3f52d5b466c13c7bddfddd62f6d4f8fc (diff)
Merge tag 'v2.3.4' into fiksgatami-dev
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 868e2333e..8f84e5c94 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -312,7 +312,9 @@ $.extend(fixmystreet.utils, {
}
// clickFeature operates on touchstart, we do not want the map click taking place on touchend!
- fixmystreet.maps.click_control.deactivate();
+ if (fixmystreet.maps.click_control) {
+ fixmystreet.maps.click_control.deactivate();
+ }
// All of this, just so that ctrl/cmd-click on a pin works?!
var event;