summaryrefslogtreecommitdiffstats
path: root/js/controller
diff options
context:
space:
mode:
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) {