Fixed bug that client cant select himself anymore
This commit is contained in:
parent
12860ef3ac
commit
5ffef4383d
2 changed files with 4 additions and 4 deletions
|
@ -91,7 +91,7 @@ class ClientEntry {
|
||||||
return this.audioController;
|
return this.audioController;
|
||||||
}
|
}
|
||||||
|
|
||||||
initializeListener(){
|
protected initializeListener(){
|
||||||
if(this._listener_initialized) return;
|
if(this._listener_initialized) return;
|
||||||
this._listener_initialized = true;
|
this._listener_initialized = true;
|
||||||
|
|
||||||
|
@ -412,7 +412,9 @@ class ClientEntry {
|
||||||
clientIcons.append($.spawn("span").addClass("client_icon"));
|
clientIcons.append($.spawn("span").addClass("client_icon"));
|
||||||
tag.append(clientIcons);
|
tag.append(clientIcons);
|
||||||
|
|
||||||
return this._tag = tag;
|
this._tag = tag;
|
||||||
|
this.initializeListener();
|
||||||
|
return this._tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
static chatTag(id: number, name: string, uid: string, braces: boolean = false) : JQuery {
|
static chatTag(id: number, name: string, uid: string, braces: boolean = false) : JQuery {
|
||||||
|
|
|
@ -206,7 +206,6 @@ class ChannelTree {
|
||||||
tag.appendTo(channel.clientTag());
|
tag.appendTo(channel.clientTag());
|
||||||
channel.adjustSize(true);
|
channel.adjustSize(true);
|
||||||
client.currentChannel().reorderClients();
|
client.currentChannel().reorderClients();
|
||||||
client.initializeListener();
|
|
||||||
|
|
||||||
channel.updateChannelTypeIcon();
|
channel.updateChannelTypeIcon();
|
||||||
return client;
|
return client;
|
||||||
|
@ -215,7 +214,6 @@ class ChannelTree {
|
||||||
registerClient(client: ClientEntry) {
|
registerClient(client: ClientEntry) {
|
||||||
this.clients.push(client);
|
this.clients.push(client);
|
||||||
client.channelTree = this;
|
client.channelTree = this;
|
||||||
client.initializeListener();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
reorderAllClients() {
|
reorderAllClients() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue