X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Fjs%2Fcontrollers.js;h=977758c2ea316f19087a1cd95037f2a1ede87060;hb=bc28d47dd7733ef8ef9cbcb24e9ade21b8c6acc3;hp=012415dc89ad76b99b5e8f95e889bc8574cbc573;hpb=46114c0d40955a3f4d9020c32ed9ec35e48d7668;p=angular-drzb diff --git a/app/js/controllers.js b/app/js/controllers.js index 012415d..977758c 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -11,7 +11,7 @@ function RegistrationCtrl($scope, $log, Registration, $routeParams, $location, $ $scope.organizations = data; $log.info('organizations promise ', $scope.organizations); }); - $scope.RegistrationState = RegistrationState; + $scope.RegistrationState = RegistrationState(); $scope.info = { message: '', css_class: '' } ; // alert box @@ -161,7 +161,7 @@ function RegistrationCtrl($scope, $log, Registration, $routeParams, $location, $ } RegistrationCtrl.$inject = [ '$scope', '$log', 'Registration', '$routeParams', '$location', '$route', 'Organizations', 'RegistrationState' ]; -function ListCtrl($scope, $log, Registration, RegistrationTypes, $filter) { +function ListCtrl($scope, $log, Registration, RegistrationTypes, $filter, RegistrationState ) { $scope.list = []; $scope.list_results = 0; @@ -181,6 +181,7 @@ function ListCtrl($scope, $log, Registration, RegistrationTypes, $filter) { states: true, pager_numeric: false }; + $scope.RegistrationState = RegistrationState(); $scope.create_counts = function( array ) { $log.info('create_counts', array.length ); @@ -270,5 +271,5 @@ function ListCtrl($scope, $log, Registration, RegistrationTypes, $filter) { } } +ListCtrl.$inject = [ '$scope', '$log', 'Registration', 'RegistrationTypes', '$filter', 'RegistrationState' ]; -ListCtrl.$inject = [ '$scope', '$log', 'Registration', 'RegistrationTypes', '$filter' ];