From: Art Cancro Date: Tue, 30 Nov 2010 06:52:24 +0000 (-0500) Subject: Use modal dialog for confirm logoff X-Git-Tag: v8.01~549^2~5 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=88779f198a89e1010b452cf199714c60223fa68e Use modal dialog for confirm logoff --- diff --git a/webcit/static/styles/modal.css b/webcit/static/styles/modal.css index 5d05b4a60..c3331bebd 100644 --- a/webcit/static/styles/modal.css +++ b/webcit/static/styles/modal.css @@ -70,5 +70,5 @@ .md-dialog { background:white; - border:2px solid #080; + border:2px solid #800; } diff --git a/webcit/static/t/confirmlogoff.html b/webcit/static/t/confirmlogoff.html new file mode 100644 index 000000000..cc8cc1222 --- /dev/null +++ b/webcit/static/t/confirmlogoff.html @@ -0,0 +1,8 @@ + + +
+

 

+

 

+
+ + diff --git a/webcit/static/t/head.html b/webcit/static/t/head.html index 3f3055a11..1e98bf7bb 100644 --- a/webcit/static/t/head.html +++ b/webcit/static/t/head.html @@ -38,7 +38,7 @@
-
+
This is the modal dialog box. If you are seeing this message, the modal dialog was invoked without first populating its contents, which diff --git a/webcit/static/t/iconbar.html b/webcit/static/t/iconbar.html index 65d7d3a9d..ab386f7c0 100644 --- a/webcit/static/t/iconbar.html +++ b/webcit/static/t/iconbar.html @@ -71,7 +71,7 @@
diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index 938ed03fe..597fdd1bd 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -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(); + } + } + ); +}