]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Presentation work
[rails.git] / app / assets / javascripts / index.js
index 4645a3e2e23a482934c9e19b7a9f03fc6b582748..74ec0582395818762d48a7390854d3ba306297ab 100644 (file)
@@ -351,12 +351,14 @@ $(document).ready(function () {
        e.preventDefault();
        $(".query_wrapper.search").hide();
        $(".query_wrapper.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();
+       $(".query_wrapper.search [name=query]").focus();
   });
 
   OSM.routing = OSM.Routing(map,'OSM.routing',$('.query_wrapper.routing'));