]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/wclib.js
Sharing: add NSYN
[citadel.git] / webcit / static / wclib.js
index 1594632f06bf3c6d312c901e74aa8f073be420d5..63215312651561e41a4bafb202fa8ab0cb10db5d 100644 (file)
@@ -89,6 +89,17 @@ function SMTPRunQueue()
     });
 }
 
+function NetworkSynchronizeRoom(NodeName)
+{
+    var p;
+
+    p= encodeURI('g_cmd=NSYN ' + NodeName);
+    new Ajax.Request('ajax_servcmd', {
+       method: 'post',
+       parameters: p,
+       onComplete: function(transport) { ajax_important_message(transport.responseText.substr(4));}
+    });
+}
 function ToggleVisibility ($Which)
 {
        if (document.getElementById)
@@ -198,7 +209,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() {