From 205a52d93d786bc15fad465baa8487dfbe4024c0 Mon Sep 17 00:00:00 2001 From: Federico Leva Date: Fri, 7 Nov 2014 09:12:49 +0100 Subject: [PATCH] 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 --- .../src/mediawiki.special/mediawiki.special.userlogin.signup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); -- 2.20.1