diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 5a76b68e..c3b5ab3c 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -88,6 +88,9 @@ module.controller('SubscribeCtrl', function($scope, SubscriptionService) { module.controller('CategoryTreeCtrl', function($scope, $timeout, $stateParams, $window, $location, $state, $route, SubscriptionService) { + $scope.selectedType = $stateParams._type; + $scope.selectedId = $stateParams._id; + $scope.$on('$stateChangeSuccess', function() { $scope.selectedType = $stateParams._type; $scope.selectedId = $stateParams._id;