X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c6e8775dbab81daf9515fe94fa0ed4c51cab5f3b..ad01a61b6d07fffff3dedfd476830699c8f50038:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 74ec05823..638be0dca 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -349,15 +349,15 @@ $(document).ready(function () { $(".get_directions").on("click",function(e) { e.preventDefault(); - $(".query_wrapper.search").hide(); - $(".query_wrapper.routing").show(); + $(".search").hide(); + $(".routing").show(); $(".query_wrapper.routing [name=route_from]").focus(); }); $(".close_directions").on("click",function(e) { e.preventDefault(); - $(".query_wrapper.search").show(); - $(".query_wrapper.routing").hide(); + $(".search").show(); + $(".routing").hide(); $(".query_wrapper.search [name=query]").focus(); });