Make WordPress Core

Ticket #32886: no-timeout.4.diff

File no-timeout.4.diff, 559 bytes (added by markjaquith, 10 years ago)
  • src/wp-admin/js/user-profile.js

    diff --git src/wp-admin/js/user-profile.js src/wp-admin/js/user-profile.js
    index de87bb9..9d28c64 100644
     
    4040                        .addClass( $pass1[0].className )
    4141                        .data( 'pw', $pass1.data( 'pw' ) )
    4242                        .val( $pass1.val() )
    43                         .on( 'input', function () {
     43                        .on( 'input propertychange', function () {
     44                                if ( $pass1Text.val() === currentPass ) {
     45                                        return;
     46                                }
     47
     48                                currentPass = $pass1Text.val();
    4449                                $pass1.val( $pass1Text.val() ).trigger( 'propertychange' );
    4550                        } );
    4651