refresh category tree when a category is removed

This commit is contained in:
Athou
2013-05-01 14:38:37 +02:00
parent 3ff21b0dbd
commit fb881ff3bb
2 changed files with 5 additions and 3 deletions

View File

@@ -91,7 +91,9 @@ function($scope, FeedService, CategoryService) {
};
$scope.saveCategory = function() {
CategoryService.add($scope.cat);
CategoryService.add($scope.cat, function() {
CategoryService.init();
});
$scope.closeCategory();
};
}]);