includes/clientside/static/enano-lib-basic.js
changeset 701 dd80cde96a6c
parent 699 c7d737202d59
child 729 ebac7eeb89eb
equal deleted inserted replaced
700:491314c44d23 701:dd80cde96a6c
   375       {
   375       {
   376         load_component('autofill');
   376         load_component('autofill');
   377         return;
   377         return;
   378       }
   378       }
   379     }
   379     }
   380     else if ( typeof(inputs[i].onkeyup) == 'function' )
       
   381     {
       
   382       var f = new String(inputs[i].onkeyup);
       
   383       if ( f.match(/AutofillUsername/) )
       
   384       {
       
   385         delete(f.onkeyup);
       
   386         f.className = 'autofill username';
       
   387         autofill_check();
       
   388         return;
       
   389       }
       
   390     }
       
   391   }
   380   }
   392 }
   381 }
   393 
   382 
   394 addOnloadHook(autofill_check);
   383 addOnloadHook(autofill_check);
   395 
   384 
   493   ajaxResetDelVotes: 'ajax.js',
   482   ajaxResetDelVotes: 'ajax.js',
   494   ajaxDeletePage: 'ajax.js',
   483   ajaxDeletePage: 'ajax.js',
   495   ajaxSetPassword: 'ajax.js',
   484   ajaxSetPassword: 'ajax.js',
   496   ajaxChangeStyle: 'ajax.js',
   485   ajaxChangeStyle: 'ajax.js',
   497   ajaxCatToTag: 'ajax.js',
   486   ajaxCatToTag: 'ajax.js',
       
   487   ajaxCatEdit: 'ajax.js',
   498   ajaxOpenACLManager: 'acl.js',
   488   ajaxOpenACLManager: 'acl.js',
   499   ajaxOpenDirectACLRule: 'acl.js',
   489   ajaxOpenDirectACLRule: 'acl.js',
   500   ajaxAdminPage: 'login.js',
   490   ajaxAdminPage: 'login.js',
   501   ajaxInitLogout: 'login.js',
   491   ajaxInitLogout: 'login.js',
   502   ajaxStartLogin: 'login.js',
   492   ajaxStartLogin: 'login.js',
   517   password_score_field: 'pwstrength.js',
   507   password_score_field: 'pwstrength.js',
   518   ajaxEditTheme: 'theme-manager.js',
   508   ajaxEditTheme: 'theme-manager.js',
   519   ajaxToggleSystemThemes: 'theme-manager.js',
   509   ajaxToggleSystemThemes: 'theme-manager.js',
   520   ajaxInstallTheme: 'theme-manager.js',
   510   ajaxInstallTheme: 'theme-manager.js',
   521   ajaxInitRankEdit: 'rank-manager.js',
   511   ajaxInitRankEdit: 'rank-manager.js',
   522   ajaxInitRankCreate: 'rank-manager.js'
   512   ajaxInitRankCreate: 'rank-manager.js',
       
   513   autofill_init_element: 'autofill.js',
       
   514   autofill_onload: 'autofill.js'
   523 };
   515 };
       
   516 
       
   517 function AutofillUsername(el, p)
       
   518 {
       
   519   p = p || {};
       
   520   el.className = 'autofill username';
       
   521   el.onkeyup = null;
       
   522   autofill_init_element(el, p);
       
   523 }
       
   524 
       
   525 function AutofillPage(el, p)
       
   526 {
       
   527   p = p || {};
       
   528   el.className = 'autofill page';
       
   529   el.onkeyup = null;
       
   530   autofill_init_element(el, p);
       
   531 }
   524 
   532 
   525 var placeholder_instances = {};
   533 var placeholder_instances = {};
   526 
   534 
   527 for ( var i in placeholder_list )
   535 for ( var i in placeholder_list )
   528 {
   536 {