]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Move vagrant provisioning script to a better location.
[rails.git] / app / assets / javascripts / index.js
index a300cc2807abe0f946c6654b3afd9dfb89d680e8..55e612f17668f6e3da055b2fdcf003b3a03c9285 100644 (file)
@@ -229,7 +229,7 @@ $(document).ready(function () {
 
     page.load = function() {
       if (!("autofocus" in document.createElement("input"))) {
-        $(".search_form input[name=query]").focus();
+        $("#sidebar .search_form input[name=query]").focus();
       }
       return map.getState();
     };