Fixed "waiting for l10n init" and js error in Admin:UserManager
authorDan
Fri, 26 Feb 2010 12:59:24 -0500
changeset 1229 17f206fe1d2e
parent 1217 feeb49aa6270
child 1232 83fd4ed90cc6
Fixed "waiting for l10n init" and js error in Admin:UserManager
plugins/admin/UserManager.php
--- a/plugins/admin/UserManager.php	Mon Feb 01 02:22:54 2010 -0500
+++ b/plugins/admin/UserManager.php	Fri Feb 26 12:59:24 2010 -0500
@@ -1112,7 +1112,10 @@
         
         <!-- BEGINNOT same_user -->
         <script type="text/javascript">
-        password_score_field(document.forms['useredit_{UUID}'].new_password);
+        addOnloadHook(function()
+          {
+            password_score_field(document.forms['useredit_{UUID}'].new_password);
+          });
         </script>
         <!-- END same_user -->