Fix slideout not closing on mobile when hitting a footer icon

Introduced by 9691df67e3 (diff-e5178f7b74fe45f2cfe1baf9aa1ef6faR347).
Seriously...
This commit is contained in:
Jérémie Astori 2017-12-24 02:51:58 -05:00
parent 7c2422ee19
commit 7f165a7593
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8

View File

@ -344,7 +344,7 @@ $(function() {
// This is a rather gross hack to account for sources that are in the // 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 // sidebar specifically. Needs to be done better when window management gets
// refactored. // refactored.
const inSidebar = self.parents("#sidebar").length > 0; const inSidebar = self.parents("#sidebar, #footer").length > 0;
if (inSidebar) { if (inSidebar) {
chat.data( chat.data(