From fb881ff3bb9033b149b06a213349a1fb66ff477e Mon Sep 17 00:00:00 2001 From: Athou Date: Wed, 1 May 2013 14:38:37 +0200 Subject: [PATCH] refresh category tree when a category is removed --- src/main/webapp/js/controllers.js | 4 +++- src/main/webapp/templates/_subscribe.html | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index eedb54a8..d7d40525 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -91,7 +91,9 @@ function($scope, FeedService, CategoryService) { }; $scope.saveCategory = function() { - CategoryService.add($scope.cat); + CategoryService.add($scope.cat, function() { + CategoryService.init(); + }); $scope.closeCategory(); }; }]); diff --git a/src/main/webapp/templates/_subscribe.html b/src/main/webapp/templates/_subscribe.html index e95fa9f6..c8989b82 100644 --- a/src/main/webapp/templates/_subscribe.html +++ b/src/main/webapp/templates/_subscribe.html @@ -92,8 +92,8 @@
- Required