From d82f4007ec50b87ad7e48f96e394484266d057d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Thu, 7 Sep 2017 19:50:00 -0400 Subject: [PATCH] Fix `/expand` command also expanding condensed status messages --- client/js/lounge.js | 4 ++-- client/views/msg_preview_toggle.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 324f6f47..27bbc960 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -201,12 +201,12 @@ $(function() { } if (text.indexOf("/collapse") === 0) { - $(".chan.active .toggle-button.opened").click(); + $(".chan.active .toggle-preview.opened").click(); return; } if (text.indexOf("/expand") === 0) { - $(".chan.active .toggle-button:not(.opened)").click(); + $(".chan.active .toggle-preview:not(.opened)").click(); return; } diff --git a/client/views/msg_preview_toggle.tpl b/client/views/msg_preview_toggle.tpl index 386282cc..c9e48f6e 100644 --- a/client/views/msg_preview_toggle.tpl +++ b/client/views/msg_preview_toggle.tpl @@ -1,5 +1,5 @@ {{#preview}} -