From c05572e4f3599440b68056ef5004c213e4789e3a Mon Sep 17 00:00:00 2001 From: urkerab Date: Mon, 28 Dec 2015 12:54:34 +0000 Subject: [PATCH] Don't unnecessarily update the tournament team selector --- js/client-chat-tournament.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/client-chat-tournament.js b/js/client-chat-tournament.js index 22f62be51..a79179597 100644 --- a/js/client-chat-tournament.js +++ b/js/client-chat-tournament.js @@ -292,7 +292,6 @@ if (joins.length > 0) message.push(arrayToPhrase(joins) + " joined the tournament"); if (leaves.length > 0) message.push(arrayToPhrase(leaves) + " left the tournament"); this.$lastJoinLeaveMessage.text(message.join("; ") + "."); - this.updateTeams(); break; case 'start': @@ -349,7 +348,7 @@ this.info.isActive = true; } - if ('format' in this.updates) { + if ('format' in this.updates || 'isJoined' in this.updates) { this.$format.text(window.BattleFormats && BattleFormats[this.info.format] ? BattleFormats[this.info.format].name : this.info.format); this.updateTeams(); } @@ -357,8 +356,6 @@ this.$generator.text(this.info.generator); if ('isStarted' in this.updates) { this.$status.text(this.info.isStarted ? "In Progress" : "Signups"); - if (this.info.isStarted) - this.updateTeams(); } // Update the toolbox