mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 14:00:21 +00:00
Merge pull request #1509 from thelounge/astorije/fix-expand-preview
Fix `/expand` command also expanding condensed status messages
This commit is contained in:
commit
9d7d5a110c
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