includes/clientside/static/acl.js
changeset 582 a38876c0793c
parent 568 3700f7124c2b
child 585 35e91d16ecf5
equal deleted inserted replaced
581:5e8fd89c02ea 582:a38876c0793c
     2 
     2 
     3 var aclManagerID = 'enano_aclmanager_' + Math.floor(Math.random() * 1000000);
     3 var aclManagerID = 'enano_aclmanager_' + Math.floor(Math.random() * 1000000);
     4 var aclPermList = false;
     4 var aclPermList = false;
     5 var aclDataCache = false;
     5 var aclDataCache = false;
     6 
     6 
     7 // Can be set to true by slow themes (St. Patty)
       
     8 if ( typeof(pref_disable_js_fx) != 'boolean' )
       
     9 {
       
    10   var pref_disable_js_fx = false;
       
    11 }
       
    12 var aclDisableTransitionFX = ( is_firefox2 || pref_disable_js_fx ) ? true : false;
       
    13 
       
    14 function ajaxOpenACLManager(page_id, namespace)
     7 function ajaxOpenACLManager(page_id, namespace)
    15 {
     8 {
    16   if(IE)
     9   if(IE)
    17     return true;
    10     return true;
       
    11   load_component('messagebox');
       
    12   load_component('fadefilter');
       
    13   load_component('template-compiler');
       
    14   load_component('l10n');
       
    15   
    18   if(!page_id || !namespace)
    16   if(!page_id || !namespace)
    19   {
    17   {
    20     var data = strToPageID(title);
    18     var data = strToPageID(title);
    21     var page_id = data[0];
    19     var page_id = data[0];
    22     var namespace = data[1];
    20     var namespace = data[1];
  1061   keys = new Array();
  1059   keys = new Array();
  1062   for(var i in obj)
  1060   for(var i in obj)
  1063     keys.push(i);
  1061     keys.push(i);
  1064   return keys;
  1062   return keys;
  1065 }
  1063 }
  1066 
       
  1067 function form_fetch_field(form, name)
       
  1068 {
       
  1069   var fields = form.getElementsByTagName('input');
       
  1070   if ( fields.length < 1 )
       
  1071     return false;
       
  1072   for ( var i = 0; i < fields.length; i++ )
       
  1073   {
       
  1074     var field = fields[i];
       
  1075     if ( field.name == name )
       
  1076       return field;
       
  1077   }
       
  1078   return false;
       
  1079 }
       
  1080