X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic%2Fwclib.js;fp=webcit%2Fstatic%2Fwclib.js;h=ae7d20c8af1a3cc2eba3df82f3299676407c41d5;hb=4d11c8a47a3090d4b1d8d58a8ce59f34ba6e4ca5;hp=1594632f06bf3c6d312c901e74aa8f073be420d5;hpb=823928eab4afe6a9cd35589bdb148ff99891c504;p=citadel.git diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index 1594632f0..ae7d20c8a 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -198,7 +198,8 @@ function remove_something(what_to_search, new_visibility) { else { document.poppedLayer = eval('document.layers[\'`' + what_to_search + '\']'); } - document.poppedLayer.innerHTML = ""; + if (document.poppedLayer!= null) + document.poppedLayer.innerHTML = ""; } function unhide_imsg_popup() {