fix return completed level

This commit is contained in:
Juraj Michalek
2014-12-29 14:23:20 +00:00
parent dbaf088b16
commit ab2562b83b
2 changed files with 11 additions and 6 deletions

View File

@@ -30,6 +30,11 @@ angular.module('level-complete', [])
$rootScope.$emit('startLevel', args); $rootScope.$emit('startLevel', args);
}; };
$scope.cancelLevel = function() {
$scope.isLevelCompleteVisible = false;
};
$rootScope.$on('completeLevel', $scope.completeLevel); $rootScope.$on('completeLevel', $scope.completeLevel);
$rootScope.$on('cancelLevel', $scope.cancelLevel);
}); });

View File

@@ -59,22 +59,22 @@ angular.module('app', ['angular-flippy', 'level-selector', 'level-complete'])
cardTypes: ['picture', 'picture', 'picture', 'picture'] cardTypes: ['picture', 'picture', 'picture', 'picture']
}, { }, {
levelName: "04: Simple Math", levelName: "04: Simple Math",
totalCards: 3*2, totalCards: 4*4,
cardsPerRow: 3, cardsPerRow: 4,
chainLength: 2, chainLength: 2,
cardSet: mathCards, cardSet: mathCards,
cardTypes: ['arabic', 'math'] cardTypes: ['arabic', 'math']
}, { }, {
levelName: "05: Roman", levelName: "05: Roman",
totalCards: 3*2, totalCards: 4*4,
cardsPerRow: 3, cardsPerRow: 4,
chainLength: 2, chainLength: 2,
cardSet: mathCards, cardSet: mathCards,
cardTypes: ['arabic', 'roman'] cardTypes: ['arabic', 'roman']
}, { }, {
levelName: "06: Japanese", levelName: "06: Japanese",
totalCards: 3*2, totalCards: 4*4,
cardsPerRow: 3, cardsPerRow: 4,
chainLength: 2, chainLength: 2,
cardSet: mathCards, cardSet: mathCards,
cardTypes: ['arabic', 'japanese'] cardTypes: ['arabic', 'japanese']