From 88ec38c61d8323c2ec25a302129fffb46881beca Mon Sep 17 00:00:00 2001 From: felixboehm Date: Fri, 19 Aug 2016 13:53:22 +0200 Subject: [PATCH] show / hide whiteliste on change --- js/guests.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/guests.js b/js/guests.js index e43540a..4a095eb 100644 --- a/js/guests.js +++ b/js/guests.js @@ -136,6 +136,11 @@ }); $guestUseWhitelist.on('change', function () { config.useWhitelist = $guestUseWhitelist.prop('checked'); + if(config.useWhitelist) { + $guestWhitelist.show(); + } else { + $guestWhitelist.hide(); + } saveConfig(); }); $guestWhitelist.on('change', function () {