includes/clientside/static/acl.js
changeset 694 43367c66d869
parent 679 80bf9b8fe6aa
child 729 ebac7eeb89eb
--- a/includes/clientside/static/acl.js	Wed Aug 13 08:56:18 2008 -0400
+++ b/includes/clientside/static/acl.js	Wed Aug 13 08:57:45 2008 -0400
@@ -58,6 +58,12 @@
 
 function ajaxOpenDirectACLRule(rule_id)
 {
+  load_component('l10n');
+  load_component('messagebox');
+  load_component('fadefilter');
+  load_component('template-compiler');
+  load_component('autofill');
+  
   var params = {
     target_id: rule_id,
     mode: 'seltarget_id'
@@ -1228,7 +1234,19 @@
         {
           if ( aclSavePreset() )
           {
-            miniPromptDestroy(this);
+            if ( window.opera )
+            {
+              // damn weird opera bug.
+              var input = this;
+              setTimeout(function()
+                {
+                  miniPromptDestroy(input);
+                }, 10);
+            }
+            else
+            {
+              miniPromptDestroy(this);
+            }
           }
         }
         else if ( e.keyCode == 27 )