mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
paint selected tree item red when page is first loaded
This commit is contained in:
@@ -88,6 +88,9 @@ module.controller('SubscribeCtrl', function($scope, SubscriptionService) {
|
|||||||
module.controller('CategoryTreeCtrl', function($scope, $timeout, $stateParams,
|
module.controller('CategoryTreeCtrl', function($scope, $timeout, $stateParams,
|
||||||
$window, $location, $state, $route, SubscriptionService) {
|
$window, $location, $state, $route, SubscriptionService) {
|
||||||
|
|
||||||
|
$scope.selectedType = $stateParams._type;
|
||||||
|
$scope.selectedId = $stateParams._id;
|
||||||
|
|
||||||
$scope.$on('$stateChangeSuccess', function() {
|
$scope.$on('$stateChangeSuccess', function() {
|
||||||
$scope.selectedType = $stateParams._type;
|
$scope.selectedType = $stateParams._type;
|
||||||
$scope.selectedId = $stateParams._id;
|
$scope.selectedId = $stateParams._id;
|
||||||
|
|||||||
Reference in New Issue
Block a user