]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/wclib.js
Sharing: add NSYN
[citadel.git] / webcit / static / wclib.js
index 956dd67b53d40de30b298a6dd8c2086805b7d28b..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)
@@ -188,6 +199,19 @@ 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 + '\']');
+       }
+    if (document.poppedLayer!= null)
+       document.poppedLayer.innerHTML = "";
+}
 
 function unhide_imsg_popup() {
        if (browserType == "gecko") {