* Move SMTP queue view JavaScript to wclib.js
[citadel.git] / webcit / static / wclib.js
index ff5d1b0cdada42c58dc250b6c262b203ee04594d..77b07f5f89a5125bb42949c14b6d444e6d412d7b 100644 (file)
@@ -924,3 +924,19 @@ function resizeViewport() {
     global.style.width = newContentSize+"px";
   }
 }
+
+function RefreshSMTPqueueDisplay() {
+       new Ajax.Updater('smtpqueue_inner_div',
+       'display_smtpqueue_inner_div', { method: 'get',
+               parameters: Math.random() } );
+}
+
+function DeleteSMTPqueueMsg(msgnum1, msgnum2) {
+       new Ajax.Request(
+               'ajax_servcmd', {
+                       method: 'post',
+                       parameters: 'g_cmd=DELE ' + msgnum1 + ',' + msgnum2,
+                       onComplete: RefreshSMTPqueueDisplay()
+               }
+       );
+}