From: Wilfried Goesgens Date: Sun, 1 Jul 2012 09:03:07 +0000 (+0200) Subject: Roomedit - Sharing: remove lines unneeded X-Git-Tag: v8.13~36 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=9ef6e7b788b37e831d5d5fe1ba332084ecee0064 Roomedit - Sharing: remove lines unneeded - add portable function to find & remove a section - call that function instead of doing it in place. - there is no input=input, its input=text --- diff --git a/webcit/static/t/room/edit/shared_room_add.html b/webcit/static/t/room/edit/shared_room_add.html index 1d5a6d6ba..c0905947e 100644 --- a/webcit/static/t/room/edit/shared_room_add.html +++ b/webcit/static/t/room/edit/shared_room_add.html @@ -2,7 +2,7 @@ "> - + |" /> @@ -11,4 +11,3 @@ - diff --git a/webcit/static/t/room/edit/shared_room_removal.html b/webcit/static/t/room/edit/shared_room_removal.html index 2be39295b..4b6602635 100644 --- a/webcit/static/t/room/edit/shared_room_removal.html +++ b/webcit/static/t/room/edit/shared_room_removal.html @@ -1,6 +1,8 @@ +
@@ -17,4 +19,3 @@ document.getElementById("ignet_share_node_add__
- diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index 956dd67b5..1594632f0 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -188,6 +188,18 @@ function hide_imsg_popup() { document.poppedLayer.style.visibility = "hidden"; } +function remove_something(what_to_search, new_visibility) { + if (browserType == "gecko") { + document.poppedLayer = eval('document.getElementById(\'' + what_to_search + '\')'); + } + else if (browserType == "ie") { + document.poppedLayer = eval('document.all[\'' + what_to_search + '\']'); + } + else { + document.poppedLayer = eval('document.layers[\'`' + what_to_search + '\']'); + } + document.poppedLayer.innerHTML = ""; +} function unhide_imsg_popup() { if (browserType == "gecko") {