From cf9f5ba9333ac2dee444bdb5d4e20523061de184 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 11 May 2008 16:15:35 +0000 Subject: [PATCH 1/1] Add maximiseMap() and minimiseMap() functions to the edit page to allow the size of the editing area to be toggled. --- app/views/site/edit.rhtml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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; -- 2.43.2