From 8ddead06277f7c863fe048e9990d4c9ce0c24424 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 21 Nov 2014 13:53:36 +0100 Subject: fix #660 --- js/controller/ExploreController.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'js/controller') 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; }; -- cgit v1.2.3