summaryrefslogtreecommitdiffstats
path: root/js/controller
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-03-21 00:50:52 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-03-21 13:36:50 +0100
commitc0e6ca12e83e27b2ef86a58f9a44c0248e711a75 (patch)
treec3710a516ca17aa99e46112c2a911985174fec28 /js/controller
parentdde0b1c0e72e7ffa9ef1ea01246effc50eff9667 (diff)
implement clientside search code
Diffstat (limited to 'js/controller')
-rw-r--r--js/controller/AppController.js1
-rw-r--r--js/controller/NavigationController.js8
2 files changed, 8 insertions, 1 deletions
diff --git a/js/controller/AppController.js b/js/controller/AppController.js
index 184cf6fc5..7cf7976ef 100644
--- a/js/controller/AppController.js
+++ b/js/controller/AppController.js
@@ -16,5 +16,4 @@ function (Loading, FeedResource, FolderResource) {
this.isFirstRun = function () {
return FeedResource.size() === 0 && FolderResource.size() === 0;
};
-
}); \ No newline at end of file
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) {