Fix: Revalidate registration form on blur to allow usage of password managers

This commit is contained in:
baldo 2016-05-02 19:57:57 +02:00 committed by root
parent 4ae1cb69d0
commit be7a837952

View File

@ -627,8 +627,8 @@ if(!window.registrationsClosed) {
});
// validate on keyup / paste
$('#popup-register input').on('keyup paste',function(){
// validate on keyup / paste / blur
$('#popup-register input').on('keyup paste blur',function(){
setTimeout(function () { // defer validation as after paste the content is not immediately available
if(validateRegisterForm($('#popup-register'))
&& !$('#signup-user-nickname-step2').hasClass('nickname-taken')