When creating a new user, pasting a password should update the password strength indicator.

props dipesh.kakadiya.
fixes #31226.

git-svn-id: https://develop.svn.wordpress.org/trunk@31483 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-02-20 13:04:03 +00:00
parent 747f6589a1
commit 7d445a3e00
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@
var $colorpicker, $stylesheet, user_id, current_user_id, var $colorpicker, $stylesheet, user_id, current_user_id,
select = $( '#display_name' ); select = $( '#display_name' );
$('#pass1').val('').keyup( check_pass_strength ); $('#pass1').val('').on( 'input propertychange', check_pass_strength );
$('#pass2').val('').keyup( check_pass_strength ); $('#pass2').val('').on( 'input propertychange', check_pass_strength );
$('#pass-strength-result').show(); $('#pass-strength-result').show();
$('.color-palette').click( function() { $('.color-palette').click( function() {
$(this).siblings('input[name="admin_color"]').prop('checked', true); $(this).siblings('input[name="admin_color"]').prop('checked', true);