Correctly remove first email input

When joining a room which has email notifications configured
master
Daniel Berteaud 10 years ago
parent 9bd0de6118
commit ead9300d8e
  1. 2
      public/js/vroom.js

@ -504,7 +504,7 @@ function initVroom(room) {
addEmailInputField(obj.email);
});
// Now, remove the first one if the list is not empty
if (data.notif.length > 0){
if (Object.keys(data.notif).length > 0){
$('.email-list').find('.email-entry:first').remove();
}
}

Loading…
Cancel
Save