diff options
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 |