]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Remove CloudMade foot engine
[rails.git] / app / assets / javascripts / index.js
index fc8e8ff465c662e2b8deb46304f51e3f6702fd65..0a11b489989f67dbf7a2133a80c0137e4f26b45c 100644 (file)
@@ -357,7 +357,7 @@ $(document).ready(function () {
     $(".routing").show();
     $(".query_wrapper.routing [name=route_from]").focus();
     $("#map").on('dragend dragover',function(e) { e.preventDefault(); });
-    $("#map").on('drop',function(e) { OSM.routing.handleDrop(e); });
+    $("#map").on('drop',function(e) { OSM.routing.handleDrop(e); e.preventDefault(); });
     $(".routing_marker").on('dragstart',function(e) {
     e.originalEvent.dataTransfer.effectAllowed = 'move';
       e.originalEvent.dataTransfer.setData('id', this.id);