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 // Now, remove the first one if the list is not empty
if (Object.keys(data.notif).length > 0){ if (Object.keys(data.notif).length > 0){
$('.email-list').find('.email-entry:first').remove(); $('#email-list-notification').find('.email-entry:first').remove();
} }
else{ else{
$('.email-list').find('.email-entry:first').find('input:first').val(''); $('#email-list-notification').find('.email-entry:first').find('input:first').val('');
} }
adjustAddRemoveEmailButtons(); adjustAddRemoveEmailButtons();
// Update config switches // Update config switches

Loading…
Cancel
Save