mirror of https://github.com/dani/vroom.git
Allow empty email address field
This commit is contained in:
parent
1fc3091aab
commit
610c486484
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue