2 * Legacy emulation for the now depricated skins/common/changepassword.js
9 $.extend( true, mw
.legacy
, {
13 'onNameChange': function() {
14 var state
= mw
.legacy
.wgUserName
!= $( '#wpName' ).val();
15 $( '#wpPassword' ).attr( 'disabled', state
);
16 $( '#wpComment' ).attr( 'disabled', !state
);
18 'onNameChangeHook': function() {
19 $( '#wpName' ).blur( mw
.legacy
.onNameChange
);
25 $( document
).ready( function() {
26 mw
.legacy
.onNameChangeHook();
29 } )( jQuery
, mediaWiki
);