From 1937944f7e42788885d2cc3e535b8f8cefb25a18 Mon Sep 17 00:00:00 2001 From: Athou Date: Tue, 12 Nov 2013 09:57:59 +0100 Subject: [PATCH] fix search --- src/main/webapp/js/controllers.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 27b9f2a7..0b136ebf 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -550,9 +550,10 @@ module.controller('ToolbarCtrl', [ }; $scope.search = function() { - $location.search('q', $scope.keywords); + var keywords = this.keywords; + $location.search('q', keywords); $scope.$emit('emitEntrySearch', { - keywords : $scope.keywords + keywords : keywords }); }; $scope.showButtons = function() {