includes/clientside/static/acl.js
changeset 694 43367c66d869
parent 679 80bf9b8fe6aa
child 729 ebac7eeb89eb
equal deleted inserted replaced
693:f21aa64d050a 694:43367c66d869
    56   return false;
    56   return false;
    57 }
    57 }
    58 
    58 
    59 function ajaxOpenDirectACLRule(rule_id)
    59 function ajaxOpenDirectACLRule(rule_id)
    60 {
    60 {
       
    61   load_component('l10n');
       
    62   load_component('messagebox');
       
    63   load_component('fadefilter');
       
    64   load_component('template-compiler');
       
    65   load_component('autofill');
       
    66   
    61   var params = {
    67   var params = {
    62     target_id: rule_id,
    68     target_id: rule_id,
    63     mode: 'seltarget_id'
    69     mode: 'seltarget_id'
    64   };
    70   };
    65   params = ajaxEscape(toJSONString(params));
    71   params = ajaxEscape(toJSONString(params));
  1226         if ( e.keyCode )
  1232         if ( e.keyCode )
  1227         if ( e.keyCode == 13 )
  1233         if ( e.keyCode == 13 )
  1228         {
  1234         {
  1229           if ( aclSavePreset() )
  1235           if ( aclSavePreset() )
  1230           {
  1236           {
  1231             miniPromptDestroy(this);
  1237             if ( window.opera )
       
  1238             {
       
  1239               // damn weird opera bug.
       
  1240               var input = this;
       
  1241               setTimeout(function()
       
  1242                 {
       
  1243                   miniPromptDestroy(input);
       
  1244                 }, 10);
       
  1245             }
       
  1246             else
       
  1247             {
       
  1248               miniPromptDestroy(this);
       
  1249             }
  1232           }
  1250           }
  1233         }
  1251         }
  1234         else if ( e.keyCode == 27 )
  1252         else if ( e.keyCode == 27 )
  1235         {
  1253         {
  1236           miniPromptDestroy(this);
  1254           miniPromptDestroy(this);