From: Federico Leva Date: Fri, 7 Nov 2014 08:12:49 +0000 (+0100) Subject: Let users type their username for 1 s during registration before barking X-Git-Tag: 1.31.0-rc.0~13357 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_modifier.php?a=commitdiff_plain;h=205a52d93d786bc15fad465baa8487dfbe4024c0;p=lhc%2Fweb%2Fwiklou.git Let users type their username for 1 s during registration before barking 250 ms are not enough to finish typing your username and the warnings on the username not being available are fully relevant only when you're done typing, while being actively harmful if you're still typing an actually valid name. We should wait as much as possible, as long as most users are given the warning before submitting the form. Bug: 71744 Change-Id: I646d76d2b29b8049c4464f156320d32ea4bd207a --- diff --git a/resources/src/mediawiki.special/mediawiki.special.userlogin.signup.js b/resources/src/mediawiki.special/mediawiki.special.userlogin.signup.js index 68d3f61be5..a32a790261 100644 --- a/resources/src/mediawiki.special/mediawiki.special.userlogin.signup.js +++ b/resources/src/mediawiki.special/mediawiki.special.userlogin.signup.js @@ -135,6 +135,6 @@ } ); } - $input.on( events, $.debounce( 250, updateUsernameStatus ) ); + $input.on( events, $.debounce( 1000, updateUsernameStatus ) ); } ); }( mediaWiki, jQuery ) );