Skip to content

Commit

Permalink
resetting selected properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Aug 23, 2015
1 parent dc77881 commit 7e69765
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game_board/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ function GameboardController(CardshifterServerAPI, $scope, $timeout, $rootScope,
$scope.cancelAction = function() {
$scope.doingAction = false;
$scope.targets = [];
for (var i = 0; i < $scope.selected.length; i++) {
$scope.selected[i].selected = false;
}
$scope.selected = [];
}

Expand Down

0 comments on commit 7e69765

Please sign in to comment.