diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-21 13:53:36 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-21 13:53:47 +0100 |
commit | 8ddead06277f7c863fe048e9990d4c9ce0c24424 (patch) | |
tree | 699416065dcf10871bf416164f36f1d05a03a480 /js/controller/ExploreController.js | |
parent | 3306d28e2d45fa03c2ca5b93de45ad59e7aad3f0 (diff) |
fix #660
Diffstat (limited to 'js/controller/ExploreController.js')
-rw-r--r-- | js/controller/ExploreController.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/controller/ExploreController.js b/js/controller/ExploreController.js index 7fca456e5..f385d277a 100644 --- a/js/controller/ExploreController.js +++ b/js/controller/ExploreController.js @@ -12,17 +12,17 @@ app.controller('ExploreController', function (sites, $rootScope, FeedResource) { this.sites = sites; - this.feedExists = function (url) { - return FeedResource.get(url) !== undefined; + this.feedExists = function (location) { + return FeedResource.getByLocation(location) !== undefined; }; - this.subscribeTo = function (url) { - $rootScope.$broadcast('addFeed', url); + this.subscribeTo = function (location) { + $rootScope.$broadcast('addFeed', location); }; this.isCategoryShown = function (data) { return data.filter(function (element) { - return FeedResource.get(element.url) === undefined; + return FeedResource.getByLocation(element.feed) === undefined; }).length > 0; }; |