From: Tom Hughes Date: Sun, 11 May 2008 16:15:35 +0000 (+0000) Subject: Add maximiseMap() and minimiseMap() functions to the edit page to allow the X-Git-Tag: live~7740 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/cf9f5ba9333ac2dee444bdb5d4e20523061de184 Add maximiseMap() and minimiseMap() functions to the edit page to allow the size of the editing area to be toggled. --- diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index ac54cb5e5..afd33e4ae 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -105,7 +105,29 @@ 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;