Implemented "goto subscription".

TODO:
 * Neither navigation with arrows nor selection with ENTER implemented,
   must click a subscription.
This commit is contained in:
Risto Kankkunen
2013-05-27 21:32:19 +03:00
parent 4e7bcd004d
commit 2ba050a167
5 changed files with 83 additions and 1 deletions

View File

@@ -556,6 +556,26 @@ function($scope, $http, $state, $stateParams, $route, $location,
};
}]);
module.controller('FeedCtrl', ['$scope', '$state', 'CategoryService',
function($scope, $state, CategoryService) {
$scope.CategoryService = CategoryService;
$scope.feedSearchModal = false;
$scope.goToFeed = function(id) {
$state.transitionTo('feeds.view', {_type : 'feed', _id : id});
$scope.feedSearchModal=false;
$scope.feedFilter='';
};
Mousetrap.bind('g u', function(e) {
$scope.$apply(function() {
$scope.feedSearchModal = true;
});
return false;
});
}]);
module.controller('FeedListCtrl', ['$scope', '$stateParams', '$http', '$route',
'$window', 'EntryService', 'SettingsService', 'FeedService', 'CategoryService', 'AnalyticsService',
function($scope, $stateParams, $http, $route, $window, EntryService, SettingsService, FeedService, CategoryService, AnalyticsService) {