diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-11 21:19:50 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-11 21:19:50 +0200 |
commit | ac653d89d9cd4c47b211f50d2b8a1a501db2d31d (patch) | |
tree | 1cf094274c728e15d70bca16c9222074c30a0aef /js/controller/NavigationController.js | |
parent | 3e313821cf21e6443ab1b75336c8c510d758fa43 (diff) |
implement move feed
Diffstat (limited to 'js/controller/NavigationController.js')
-rw-r--r-- | js/controller/NavigationController.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js index 3099c384f..5261b3042 100644 --- a/js/controller/NavigationController.js +++ b/js/controller/NavigationController.js @@ -9,7 +9,7 @@ */ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource, - SettingsResource, Publisher) { + SettingsResource, Publisher, $rootScope) { 'use strict'; this.feedError = ''; @@ -188,4 +188,9 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource, console.log('remove ' + folder); }; + var self = this; + $rootScope.$on('moveFeedToFolder', function (scope, data) { + self.moveFeed(data.feedId, data.folderId); + }); + });
\ No newline at end of file |