Use modal dialog for confirm logoff
[citadel.git] / webcit / static / wclib.js
index 938ed03fee086e448b87cb982fb4b59d1688e3c9..597fdd1bd0e33d80f54bb7e6c5e8fc4f85dffb19 100644 (file)
@@ -861,3 +861,17 @@ function DeleteSMTPqueueMsg(msgnum1, msgnum2) {
                }
        );
 }
+
+
+function ConfirmLogoff() {
+       new Ajax.Updater(
+               'md-content',
+               'do_template?template=confirmlogoff',
+                {
+                        method: 'get',
+                       onSuccess: function(cl_success) {
+                               toggleModal();
+                       }
+                }
+        );
+}