includes/clientside/static/enano-lib-basic.js
changeset 701 dd80cde96a6c
parent 699 c7d737202d59
child 729 ebac7eeb89eb
--- a/includes/clientside/static/enano-lib-basic.js	Thu Aug 21 08:24:37 2008 -0400
+++ b/includes/clientside/static/enano-lib-basic.js	Thu Aug 21 11:24:56 2008 -0400
@@ -377,17 +377,6 @@
         return;
       }
     }
-    else if ( typeof(inputs[i].onkeyup) == 'function' )
-    {
-      var f = new String(inputs[i].onkeyup);
-      if ( f.match(/AutofillUsername/) )
-      {
-        delete(f.onkeyup);
-        f.className = 'autofill username';
-        autofill_check();
-        return;
-      }
-    }
   }
 }
 
@@ -495,6 +484,7 @@
   ajaxSetPassword: 'ajax.js',
   ajaxChangeStyle: 'ajax.js',
   ajaxCatToTag: 'ajax.js',
+  ajaxCatEdit: 'ajax.js',
   ajaxOpenACLManager: 'acl.js',
   ajaxOpenDirectACLRule: 'acl.js',
   ajaxAdminPage: 'login.js',
@@ -519,9 +509,27 @@
   ajaxToggleSystemThemes: 'theme-manager.js',
   ajaxInstallTheme: 'theme-manager.js',
   ajaxInitRankEdit: 'rank-manager.js',
-  ajaxInitRankCreate: 'rank-manager.js'
+  ajaxInitRankCreate: 'rank-manager.js',
+  autofill_init_element: 'autofill.js',
+  autofill_onload: 'autofill.js'
 };
 
+function AutofillUsername(el, p)
+{
+  p = p || {};
+  el.className = 'autofill username';
+  el.onkeyup = null;
+  autofill_init_element(el, p);
+}
+
+function AutofillPage(el, p)
+{
+  p = p || {};
+  el.className = 'autofill page';
+  el.onkeyup = null;
+  autofill_init_element(el, p);
+}
+
 var placeholder_instances = {};
 
 for ( var i in placeholder_list )