From f80463cfd71c940db2d34ee2045efb5669e0f925 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 16 Sep 2015 17:06:19 +0200 Subject: [PATCH] Fix invitation field missing when notification is set --- public/js/vroom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index ba13a9d..b8f1d71 100644 --- a/public/js/vroom.js +++ b/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