Merge branch 'api-v3-client-tests' of https://github.com/TheHollidayInn/habitrpg into TheHollidayInn-api-v3-client-tests2

This commit is contained in:
Matteo Pagliazzi
2016-05-08 16:59:15 +02:00
15 changed files with 297 additions and 287 deletions

View File

@@ -263,7 +263,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
});
}
$scope.leave = function(keep) {
$scope.leave = function(keep, challenge) {
if (keep == 'cancel') {
$scope.selectedChal = undefined;
} else {