Fixed password_score_field onload in Admin:UserManager
authorDan
Tue, 30 Mar 2010 11:43:17 -0400
changeset 1232 83fd4ed90cc6
parent 1231 4797a4a88533 (current diff)
parent 1229 17f206fe1d2e (diff)
child 1233 202b25e2d0e6
child 1239 e88534039a8d
Fixed password_score_field onload in Admin:UserManager
plugins/admin/UserManager.php
--- a/plugins/admin/UserManager.php	Tue Mar 30 11:37:00 2010 -0400
+++ b/plugins/admin/UserManager.php	Tue Mar 30 11:43:17 2010 -0400
@@ -1112,7 +1112,9 @@
 				
 				<!-- 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 -->