mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 22:54:15 +00:00
Fix /expand
command also expanding condensed status messages
This commit is contained in:
parent
3b049f174c
commit
d82f4007ec
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{#preview}}
|
||||
<button class="toggle-button {{#if shown}} opened{{/if}}"
|
||||
<button class="toggle-button toggle-preview {{#if shown}} opened{{/if}}"
|
||||
data-url="{{link}}"
|
||||
{{#equal type "image"}}
|
||||
aria-label="Toggle image preview"
|
||||
|
|
Loading…
Reference in a new issue