mirror of
https://github.com/ysoftdevs/pf2015.git
synced 2026-01-15 08:14:07 +01:00
fix return completed level
This commit is contained in:
@@ -30,6 +30,11 @@ angular.module('level-complete', [])
|
||||
$rootScope.$emit('startLevel', args);
|
||||
};
|
||||
|
||||
$scope.cancelLevel = function() {
|
||||
$scope.isLevelCompleteVisible = false;
|
||||
};
|
||||
|
||||
$rootScope.$on('completeLevel', $scope.completeLevel);
|
||||
$rootScope.$on('cancelLevel', $scope.cancelLevel);
|
||||
|
||||
});
|
||||
@@ -59,22 +59,22 @@ angular.module('app', ['angular-flippy', 'level-selector', 'level-complete'])
|
||||
cardTypes: ['picture', 'picture', 'picture', 'picture']
|
||||
}, {
|
||||
levelName: "04: Simple Math",
|
||||
totalCards: 3*2,
|
||||
cardsPerRow: 3,
|
||||
totalCards: 4*4,
|
||||
cardsPerRow: 4,
|
||||
chainLength: 2,
|
||||
cardSet: mathCards,
|
||||
cardTypes: ['arabic', 'math']
|
||||
}, {
|
||||
levelName: "05: Roman",
|
||||
totalCards: 3*2,
|
||||
cardsPerRow: 3,
|
||||
totalCards: 4*4,
|
||||
cardsPerRow: 4,
|
||||
chainLength: 2,
|
||||
cardSet: mathCards,
|
||||
cardTypes: ['arabic', 'roman']
|
||||
}, {
|
||||
levelName: "06: Japanese",
|
||||
totalCards: 3*2,
|
||||
cardsPerRow: 3,
|
||||
totalCards: 4*4,
|
||||
cardsPerRow: 4,
|
||||
chainLength: 2,
|
||||
cardSet: mathCards,
|
||||
cardTypes: ['arabic', 'japanese']
|
||||
|
||||
Reference in New Issue
Block a user