From 193c73109f0c9666891cf872af94e6e03c324a32 Mon Sep 17 00:00:00 2001 From: Athou Date: Thu, 11 Apr 2013 10:24:35 +0200 Subject: [PATCH] paint selected tree item red when page is first loaded --- src/main/webapp/js/controllers.js | 3 +++ 1 file changed, 3 insertions(+) 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;