1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-16 03:19:13 +02:00

Allow empty email address field

This commit is contained in:
Daniel Berteaud 2015-01-29 22:22:21 +01:00
parent 1fc3091aab
commit 610c486484

View File

@ -258,7 +258,7 @@ $('#configureRoomForm').submit(function(e){
} }
var validEmail = true; var validEmail = true;
$('.email-list').find('input').each(function(index, input){ $('.email-list').find('input').each(function(index, input){
if (!$(input).val().match(/\S+@\S+\.\S+/)){ if (!$(input).val().match(/\S+@\S+\.\S+/) && $(input).val() !== ''){
$(input).parent().addClass('has-error'); $(input).parent().addClass('has-error');
//$(input).parent().notify(locale.ERROR_MAIL_INVALID, 'error'); //$(input).parent().notify(locale.ERROR_MAIL_INVALID, 'error');
validEmail = false; validEmail = false;