Skip to content

Commit

Permalink
Teambuilder: Fix deleting teams
Browse files Browse the repository at this point in the history
Deleting teams now correctly updates the team list
  • Loading branch information
Zarel committed Sep 20, 2013
1 parent 264aadc commit 30490f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/client-teambuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
this.deletedTeamLoc = i;
this.deletedTeam = teams.splice(i, 1)[0];
Storage.deleteTeam(this.deletedTeam);
this.update();
},
undoDelete: function() {
if (this.deletedTeamLoc >= 0) {
Expand All @@ -203,6 +204,7 @@
this.deletedTeam = null;
this.deletedTeamLoc = -1;
Storage.saveTeam(undeletedTeam);
this.update();
}
},
saveBackup: function() {
Expand Down

0 comments on commit 30490f2

Please sign in to comment.