Fix invitation field missing when notification is set

master
Daniel Berteaud 9 years ago
parent 2decea27e7
commit f80463cfd7
  1. 4
      public/js/vroom.js

@ -415,10 +415,10 @@ function getRoomInfo(cb){
});
// Now, remove the first one if the list is not empty
if (Object.keys(data.notif).length > 0){
$('.email-list').find('.email-entry:first').remove();
$('#email-list-notification').find('.email-entry:first').remove();
}
else{
$('.email-list').find('.email-entry:first').find('input:first').val('');
$('#email-list-notification').find('.email-entry:first').find('input:first').val('');
}
adjustAddRemoveEmailButtons();
// Update config switches

Loading…
Cancel
Save