From 7f165a75935eda48c768d90b481da47372e3a5d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sun, 24 Dec 2017 02:51:58 -0500 Subject: [PATCH] Fix slideout not closing on mobile when hitting a footer icon Introduced by https://github.com/thelounge/lounge/commit/9691df67e3d76219ee51cfc003dafc88e54e9ecb#diff-e5178f7b74fe45f2cfe1baf9aa1ef6faR347. Seriously... --- client/js/lounge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index d12ca562..4cbb37c0 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -344,7 +344,7 @@ $(function() { // This is a rather gross hack to account for sources that are in the // sidebar specifically. Needs to be done better when window management gets // refactored. - const inSidebar = self.parents("#sidebar").length > 0; + const inSidebar = self.parents("#sidebar, #footer").length > 0; if (inSidebar) { chat.data(