bit of cleanup
This commit is contained in:
parent
938bacdb1d
commit
6f0146e159
2 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@ function FeedListCtrl($scope, feeds, pageSwitcher, $location) {
|
||||||
pageSwitcher.change('feeds');
|
pageSwitcher.change('feeds');
|
||||||
}
|
}
|
||||||
|
|
||||||
function FeedCtrl($scope, $routeParams, $location, feeds, pageSwitcher, feedItems, $rootScope) {
|
function FeedCtrl($scope, $routeParams, $location, feeds, pageSwitcher) {
|
||||||
$scope.nrQueueItemsOptions = [1, 2, 3, 4, 5];
|
$scope.nrQueueItemsOptions = [1, 2, 3, 4, 5];
|
||||||
$scope.feed = {};
|
$scope.feed = {};
|
||||||
// show info at top and items underneath
|
// show info at top and items underneath
|
||||||
|
@ -50,7 +50,7 @@ function FeedCtrl($scope, $routeParams, $location, feeds, pageSwitcher, feedItem
|
||||||
};
|
};
|
||||||
|
|
||||||
pageSwitcher.setBack('feeds');
|
pageSwitcher.setBack('feeds');
|
||||||
}
|
}
|
||||||
|
|
||||||
function ListItemCtrl($scope, $rootScope, feedItems, downloader, pageChanger)
|
function ListItemCtrl($scope, $rootScope, feedItems, downloader, pageChanger)
|
||||||
{
|
{
|
||||||
|
|
|
@ -115,9 +115,9 @@ angular.module('podcasts.models', ['podcasts.database', 'podcasts.utilities'])
|
||||||
*/
|
*/
|
||||||
function _downloadAllItems(updateStatus) {
|
function _downloadAllItems(updateStatus) {
|
||||||
var feedService = this,
|
var feedService = this,
|
||||||
promise = db.get("feed");
|
feeds = db.get("feed");
|
||||||
|
|
||||||
promise.then(function(results) {
|
feeds.then(function(results) {
|
||||||
angular.forEach(results, function(item) {
|
angular.forEach(results, function(item) {
|
||||||
feedService.downloadItems(item, updateStatus);
|
feedService.downloadItems(item, updateStatus);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue