Fix invitation field missing when notification is set

This commit is contained in:
Daniel Berteaud 2015-09-16 17:06:19 +02:00
parent 2decea27e7
commit f80463cfd7
1 changed files with 2 additions and 2 deletions

View File

@ -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