add tracking for subscription list

This commit is contained in:
Athou
2013-05-11 11:53:51 +02:00
parent 97ed920863
commit 971d80e141

View File

@@ -108,8 +108,8 @@ function($scope, FeedService, CategoryService) {
}]);
module.controller('CategoryTreeCtrl', ['$scope', '$timeout', '$stateParams', '$window',
'$location', '$state', '$route', 'CategoryService',
function($scope, $timeout, $stateParams, $window, $location, $state, $route, CategoryService) {
'$location', '$state', '$route', 'CategoryService', 'AnalyticsService',
function($scope, $timeout, $stateParams, $window, $location, $state, $route, CategoryService, AnalyticsService) {
$scope.selectedType = $stateParams._type;
$scope.selectedId = $stateParams._id;
@@ -125,6 +125,7 @@ function($scope, $timeout, $stateParams, $window, $location, $state, $route, Cat
});
$timeout(function refreshTree() {
AnalyticsService.track();
CategoryService.init(function() {
$timeout(refreshTree, 15000);
}, function() {