]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/edit.rhtml
Improve the layout of the browse sidebar a bit.
[rails.git] / app / views / site / edit.rhtml
index ac54cb5e5f74c101f962b92fdb3c32657e479bd6..afd33e4ae1cbb1371dfec634cfae140374d6ea57 100644 (file)
 
     resizeMap();
   }
+
+  function maximiseMap() {
+    $("left").style.display = "none";
+    $("greeting").style.display = "none";
+    $("tabnav").style.display = "none";
+
+    $("content").style.top = "10px";
+    $("content").style.left = "10px";
+
+    handleResize();
+  }
   
+  function minimiseMap() {
+    $("left").style.display = "";
+    $("greeting").style.display = "";
+    $("tabnav").style.display = "";
+
+    $("content").style.top = "35px";
+    $("content").style.left = "192px";
+
+    handleResize();
+  }
+
   handleResize();
 
   window.onload = handleResize;