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:
parent
1fc3091aab
commit
610c486484
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user