Do not compute preview "More" buttons on mobile
This commit is contained in:
parent
dbabdd83dc
commit
ac02bd370b
@ -36,6 +36,8 @@ $(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
storage.set(name, state);
|
storage.set(name, state);
|
||||||
|
|
||||||
|
utils.togglePreviewMoreButtonsIfNeeded();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If sidebar overlay is visible and it is clicked, close the sidebar
|
// If sidebar overlay is visible and it is clicked, close the sidebar
|
||||||
@ -49,7 +51,6 @@ $(function() {
|
|||||||
|
|
||||||
slideoutMenu.toggle(isOpen);
|
slideoutMenu.toggle(isOpen);
|
||||||
storeSidebarVisibility("thelounge.state.sidebar", isOpen);
|
storeSidebarVisibility("thelounge.state.sidebar", isOpen);
|
||||||
utils.togglePreviewMoreButtonsIfNeeded();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
viewport.on("click", ".rt", function() {
|
viewport.on("click", ".rt", function() {
|
||||||
@ -58,7 +59,6 @@ $(function() {
|
|||||||
viewport.toggleClass("rt", isOpen);
|
viewport.toggleClass("rt", isOpen);
|
||||||
chat.find(".chan.active .chat").trigger("keepToBottom");
|
chat.find(".chan.active .chat").trigger("keepToBottom");
|
||||||
storeSidebarVisibility("thelounge.state.userlist", isOpen);
|
storeSidebarVisibility("thelounge.state.userlist", isOpen);
|
||||||
utils.togglePreviewMoreButtonsIfNeeded();
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user