X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic%2Fwclib.js;fp=webcit%2Fstatic%2Fwclib.js;h=1594632f06bf3c6d312c901e74aa8f073be420d5;hb=9ef6e7b788b37e831d5d5fe1ba332084ecee0064;hp=956dd67b53d40de30b298a6dd8c2086805b7d28b;hpb=24964b15db4b243835de8b5c4c1bc40280c5e881;p=citadel.git 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") {