From 059600f10c3e027bb568181901f4dc7af0761908 Mon Sep 17 00:00:00 2001 From: TheME Date: Wed, 31 May 2017 21:18:44 +0200 Subject: [PATCH] remove function to open user menu AdminLTE has already an implemented function to toggle the user menu. So there is no need to use an own script in footer.js Benefit: The dropdown-menu closes if you click on a blank Place --- scripts/pi-hole/js/footer.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js index e6c3c157..16dfd4e9 100644 --- a/scripts/pi-hole/js/footer.js +++ b/scripts/pi-hole/js/footer.js @@ -4,16 +4,6 @@ * * This file is copyright under the latest version of the EUPL. * Please see LICENSE file for your rights under this license. */ -// User menu toggle -$("#dropdown-menu a").on("click", function(event) { - $(this).parent().toggleClass("open"); -}); -$("body").on("click", function(event) { - if(!$("#dropdown-menu").is(event.target) && $("#dropdown-menu").has(event.target).length === 0) { - $("#dropdown-menu").removeClass("open"); - } -}); - //The following functions allow us to display time until pi-hole is enabled after disabling. //Works between all pages