From 5f7b3fa46d3cf5a7f30b6582d40987e47829817c Mon Sep 17 00:00:00 2001 From: Athou Date: Sun, 24 Mar 2013 14:42:17 +0100 Subject: [PATCH] dropdown on tree --- src/main/webapp/directives/category.html | 8 ++++++++ src/main/webapp/js/services.js | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/directives/category.html b/src/main/webapp/directives/category.html index 9a0cb757..43625c5f 100644 --- a/src/main/webapp/directives/category.html +++ b/src/main/webapp/directives/category.html @@ -7,6 +7,14 @@ {{formatFeedName({feed:feed})}} + \ No newline at end of file diff --git a/src/main/webapp/js/services.js b/src/main/webapp/js/services.js index 87f55b47..213d11f7 100644 --- a/src/main/webapp/js/services.js +++ b/src/main/webapp/js/services.js @@ -46,14 +46,14 @@ module.factory('SubscriptionService', [ '$resource', '$http', s.flatCategories = flatten(s.subscriptions); }); }; - s.subscribe = function(sub) { - res.subscribe(sub); + s.subscribe = function(sub, callback) { + res.subscribe(sub, callback); s.init(); }; - s.unsubscribe = function(id) { + s.unsubscribe = function(id, callback) { res.unsubscribe({ id : id - }); + }, callback); s.init(); }; s.init();