diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-21 00:50:52 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-21 13:36:50 +0100 |
commit | c0e6ca12e83e27b2ef86a58f9a44c0248e711a75 (patch) | |
tree | c3710a516ca17aa99e46112c2a911985174fec28 /js/controller/NavigationController.js | |
parent | dde0b1c0e72e7ffa9ef1ea01246effc50eff9667 (diff) |
implement clientside search code
Diffstat (limited to 'js/controller/NavigationController.js')
-rw-r--r-- | js/controller/NavigationController.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js index af2e3ac76..3821be6c0 100644 --- a/js/controller/NavigationController.js +++ b/js/controller/NavigationController.js @@ -286,6 +286,14 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource, $route.reload(); }; + this.search = function (value) { + if (value === '') { + $location.search('search', null); + } else { + $location.search('search', value); + } + }; + var self = this; $rootScope.$on('moveFeedToFolder', function (scope, data) { |