mirror of
https://github.com/ysoftdevs/pf2015.git
synced 2026-05-07 08:23:34 +02:00
remove debug messages, clean up
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
angular.module('level-complete', [])
|
||||
.controller('LevelCompleteController', function($scope, $rootScope) {
|
||||
.controller('LevelCompleteController', function($scope, $rootScope, $window) {
|
||||
|
||||
$scope.isLevelCompleteVisible = false;
|
||||
|
||||
@@ -33,6 +33,10 @@ angular.module('level-complete', [])
|
||||
$scope.cancelLevel = function() {
|
||||
$scope.isLevelCompleteVisible = false;
|
||||
};
|
||||
|
||||
$scope.openUrl = function(url) {
|
||||
$window.open(url);
|
||||
};
|
||||
|
||||
$rootScope.$on('completeLevel', $scope.completeLevel);
|
||||
$rootScope.$on('cancelLevel', $scope.cancelLevel);
|
||||
|
||||
Reference in New Issue
Block a user