From 682e2d525f255d781d370eb82a5b9fe655471bcb Mon Sep 17 00:00:00 2001 From: Athou Date: Wed, 1 May 2013 14:08:14 +0200 Subject: [PATCH] preselect default category when subscribing --- src/main/webapp/js/controllers.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 999dece4..eedb54a8 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -31,7 +31,9 @@ function($scope, FeedService, CategoryService) { $scope.CategoryService = CategoryService; $scope.open = function() { - $scope.sub = {}; + $scope.sub = { + categoryId: 'all' + }; $scope.isOpen = true; }; @@ -79,7 +81,9 @@ function($scope, FeedService, CategoryService) { $scope.openCategory = function() { $scope.isOpenCategory = true; - $scope.cat = {}; + $scope.cat = { + parentId: 'all' + }; }; $scope.closeCategory = function() {