category is required when subscribing

This commit is contained in:
Athou
2013-04-26 23:06:35 +02:00
parent ac47bd61a0
commit 791aede4cf

View File

@@ -53,6 +53,9 @@ function($scope, FeedService, CategoryService) {
};
$scope.save = function() {
if (!$scope.sub.categoryId) {
return;
}
FeedService.subscribe($scope.sub, function() {
CategoryService.init();
});