summaryrefslogtreecommitdiffstats
path: root/js/controller/NavigationController.js
diff options
context:
space:
mode:
authorBernhard Posselt <Raydiation@users.noreply.github.com>2015-03-30 19:40:07 +0200
committerBernhard Posselt <Raydiation@users.noreply.github.com>2015-03-30 19:40:07 +0200
commit05985bc2965f8a332e98121050ba1f07343bbc0f (patch)
tree96ca5d59b7ce3c9d3678dd95d8595145d1d5df08 /js/controller/NavigationController.js
parenteb7fc97f33cadcf041a06915b8f1650a9b4f6bbb (diff)
parentee3d2332ec97487893ae5f1f46b599c550b25eb6 (diff)
Merge pull request #751 from owncloud/next
Changes for 8.1
Diffstat (limited to 'js/controller/NavigationController.js')
-rw-r--r--js/controller/NavigationController.js8
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) {