ususers: username // '|' in usernames is handled below
} )
.done( function ( resp ) {
- var userinfo = resp.query.users[0];
+ var userinfo = resp.query.users[ 0 ];
if ( resp.query.users.length !== 1 ) {
// Happens if the user types '|' into the field
.empty()
.append(
// Ugh…
- // @todo Change the HTML structure in includes/templates/Usercreate.php
+ // TODO Change the HTML structure in includes/templates/Usercreate.php
$( '<strong>' ).text( mw.message( 'createacct-error' ).text() ),
$( '<br>' ),
document.createTextNode( message )
} );
}
- $input.on( events, $.debounce( 250, updateUsernameStatus ) );
+ $input.on( events, $.debounce( 1000, updateUsernameStatus ) );
} );
}( mediaWiki, jQuery ) );