mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
preselect default category when subscribing
This commit is contained in:
@@ -31,7 +31,9 @@ function($scope, FeedService, CategoryService) {
|
|||||||
$scope.CategoryService = CategoryService;
|
$scope.CategoryService = CategoryService;
|
||||||
|
|
||||||
$scope.open = function() {
|
$scope.open = function() {
|
||||||
$scope.sub = {};
|
$scope.sub = {
|
||||||
|
categoryId: 'all'
|
||||||
|
};
|
||||||
$scope.isOpen = true;
|
$scope.isOpen = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -79,7 +81,9 @@ function($scope, FeedService, CategoryService) {
|
|||||||
|
|
||||||
$scope.openCategory = function() {
|
$scope.openCategory = function() {
|
||||||
$scope.isOpenCategory = true;
|
$scope.isOpenCategory = true;
|
||||||
$scope.cat = {};
|
$scope.cat = {
|
||||||
|
parentId: 'all'
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.closeCategory = function() {
|
$scope.closeCategory = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user