Allow empty email address field

master
Daniel Berteaud 10 years ago
parent 1fc3091aab
commit 610c486484
  1. 2
      public/js/vroom.js

@ -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…
Cancel
Save