]> git.openstreetmap.org Git - rails.git/commitdiff
Add maximiseMap() and minimiseMap() functions to the edit page to allow the
authorTom Hughes <tom@compton.nu>
Sun, 11 May 2008 16:15:35 +0000 (16:15 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 11 May 2008 16:15:35 +0000 (16:15 +0000)
size of the editing area to be toggled.

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;