mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-01 05:12:24 +02:00
Merge pull request #1993 from milindl/feat/chan-auto-current
Show channels for only active server in autocomplete
This commit is contained in:
commit
ff9dd3833e
|
@ -282,7 +282,9 @@ function completeCommands(word) {
|
|||
function completeChans(word) {
|
||||
const words = [];
|
||||
|
||||
sidebar.find(".chan")
|
||||
sidebar.find(".chan.active")
|
||||
.parent()
|
||||
.find(".chan")
|
||||
.each(function() {
|
||||
const self = $(this);
|
||||
if (!self.hasClass("lobby")) {
|
||||
|
|
Loading…
Reference in a new issue