Make WordPress Core

Ticket #31226: 31226.diff

File 31226.diff, 720 bytes (added by dipesh.kakadiya, 10 years ago)

patch for trigger the Password strength indicator while paste password using mouse

  • src/wp-admin/js/user-profile.js

     
    3434                var $colorpicker, $stylesheet, user_id, current_user_id,
    3535                        select = $( '#display_name' );
    3636
    37                 $('#pass1').val('').keyup( check_pass_strength );
    38                 $('#pass2').val('').keyup( check_pass_strength );
     37                $('#pass1').bind('input propertychange', check_pass_strength );
     38                $('#pass2').bind('input propertychange', check_pass_strength );
    3939                $('#pass-strength-result').show();
    4040                $('.color-palette').click( function() {
    4141                        $(this).siblings('input[name="admin_color"]').prop('checked', true);