mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-31 21:22:20 -05:00
Only delete the old bracket after the new one is generated
to prevent it from "flashing"
This commit is contained in:
parent
ab9d2cc59b
commit
40d68bb406
|
|
@ -240,9 +240,9 @@
|
|||
this.$tools.toggleClass('active', !this.info.isStarted || this.info.isJoined);
|
||||
|
||||
// Update the bracket
|
||||
var $bracket = this.generateBracket(this.info.bracketData);
|
||||
this.$bracket.empty();
|
||||
this.$bracket.removeClass('tournament-bracket-overflowing');
|
||||
var $bracket = this.generateBracket(this.info.bracketData);
|
||||
if ($bracket) {
|
||||
this.$bracket.append($bracket);
|
||||
this.updateLayout();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user