]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Increase sidebar width, back to 350px
[rails.git] / app / assets / javascripts / index.js
index 6e60d5666de6a472e955898e2c7c1eab0a497658..59e231381778bb5d1591982f0256f57e2fc0e55e 100644 (file)
@@ -201,7 +201,7 @@ $(document).ready(function () {
     page.pushstate = function(path) {
       $("#content").addClass("overlay-sidebar");
       map.invalidateSize({pan: false})
-        .panBy([-300, 0], {animate: false});
+        .panBy([-350, 0], {animate: false});
       OSM.loadSidebarContent(path);
       page.load();
     };
@@ -217,7 +217,7 @@ $(document).ready(function () {
     };
 
     page.unload = function() {
-      map.panBy([300, 0], {animate: false});
+      map.panBy([350, 0], {animate: false});
       $("#content").removeClass("overlay-sidebar");
       map.invalidateSize({pan: false});
     };
@@ -270,7 +270,7 @@ $(document).ready(function () {
 
   $(".search_form").on("submit", function(e) {
     e.preventDefault();
-    $("#header").addClass("closed");
+    $("header").addClass("closed");
     var query = $(this).find("input[name=query]").val();
     if (query) {
       OSM.route("/search?query=" + encodeURIComponent(query) + OSM.formatHash(map));