Allow empty email address field

This commit is contained in:
Daniel Berteaud 2015-01-29 22:22:21 +01:00
parent 1fc3091aab
commit 610c486484
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ $('#configureRoomForm').submit(function(e){
}
var validEmail = true;
$('.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().notify(locale.ERROR_MAIL_INVALID, 'error');
validEmail = false;