From ac02bd370bcb05eac84d52e35086928b35db3ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sun, 8 Apr 2018 17:37:33 -0400 Subject: [PATCH] Do not compute preview "More" buttons on mobile --- client/js/lounge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index bf35b900..9d98aef6 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -36,6 +36,8 @@ $(function() { } storage.set(name, state); + + utils.togglePreviewMoreButtonsIfNeeded(); } // If sidebar overlay is visible and it is clicked, close the sidebar @@ -49,7 +51,6 @@ $(function() { slideoutMenu.toggle(isOpen); storeSidebarVisibility("thelounge.state.sidebar", isOpen); - utils.togglePreviewMoreButtonsIfNeeded(); }); viewport.on("click", ".rt", function() { @@ -58,7 +59,6 @@ $(function() { viewport.toggleClass("rt", isOpen); chat.find(".chan.active .chat").trigger("keepToBottom"); storeSidebarVisibility("thelounge.state.userlist", isOpen); - utils.togglePreviewMoreButtonsIfNeeded(); return false; });