X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/888db7a3b45a789b7e67e602a0002200a8219e18..873c1cb84e2fe475bc4ff566d71929fdcc35787d:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 2b5f23ef1..52b8b4c23 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -355,6 +355,7 @@ $(document).ready(function () { e.preventDefault(); $(".search").hide(); $(".routing").show(); + $(".search_form input[type='submit']").addClass("routing_submit"); $(".query_wrapper.routing [name=route_from]").focus(); $("#map").on('dragend dragover',function(e) { e.preventDefault(); }); $("#map").on('drop',function(e) { OSM.routing.handleDrop(e); e.preventDefault(); }); @@ -372,6 +373,7 @@ $(document).ready(function () { e.preventDefault(); $(".search").show(); $(".routing").hide(); + $(".search_form input[type='submit']").removeClass("routing_submit"); OSM.routing.close(); $("#map").off('dragend drop dragover'); $(".routing_marker").off('dragstart');