includes/clientside/static/acl.js
changeset 541 acb7e23b6ffa
parent 535 b31eb2b6c137
child 555 ac4c6a7f01d8
--- a/includes/clientside/static/acl.js	Sat Apr 26 17:25:28 2008 -0400
+++ b/includes/clientside/static/acl.js	Sun May 04 21:57:48 2008 -0400
@@ -695,7 +695,35 @@
   closer = document.createElement('input');
   closer.type = 'button';
   closer.value = $lang.get('etc_cancel_changes');
-  closer.onclick = function() { if(!confirm($lang.get('acl_msg_closeacl_confirm'))) return false; killACLManager(); return false; }
+  closer.onclick = function()
+  {
+    miniPromptMessage({
+      title: $lang.get('acl_msg_closeacl_confirm_title'),
+      message: $lang.get('acl_msg_closeacl_confirm_body'),
+      buttons: [
+        {
+          text: $lang.get('acl_btn_close'),
+          color: 'red',
+          style: {
+            fontWeight: 'bold'
+          },
+          onclick: function(e)
+          {
+            killACLManager();
+            miniPromptDestroy(this);
+          }
+        },
+        {
+          text: $lang.get('etc_cancel'),
+          onclick: function(e)
+          {
+            miniPromptDestroy(this);
+          }
+        }
+      ]
+    });
+    return false;
+  }
   
   spacer1 = document.createTextNode('  ');
   spacer2 = document.createTextNode('  ');