mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Not manipulate the visibility of the left sidebar if the left sidebar toggle btn is hidden
This commit is contained in:
parent
2feec0e597
commit
528e8584c0
@ -862,13 +862,21 @@
|
||||
return;
|
||||
}
|
||||
if (animate_it) {
|
||||
if ($("#guild-btn").is(":visible")) {
|
||||
$("#guild-btn").sideNav("show");
|
||||
}
|
||||
$("#channel-"+channel_id)[0].scrollIntoView({behavior: "smooth"});
|
||||
flashElement($("#channel-"+channel_id));
|
||||
var timeout = 400;
|
||||
if ($("#guild-btn").is(":visible")) {
|
||||
timeout = 1000;
|
||||
}
|
||||
setTimeout(function () {
|
||||
if ($("#guild-btn").is(":visible")) {
|
||||
$("#guild-btn").sideNav("hide");
|
||||
}
|
||||
select_channel(channel_id, false, true);
|
||||
}, 1000);
|
||||
}, timeout);
|
||||
return;
|
||||
}
|
||||
selected_channel = channel_id;
|
||||
|
Loading…
Reference in New Issue
Block a user