summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/js/build/app.js b/js/build/app.js
index 007521016..d95cb18d7 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -2853,13 +2853,11 @@ app.directive('newsSearch', ["$document", "$location", function ($document, $loc
var box = $('#searchbox');
box.val($location.search().search);
- box.on('keyup', function (e) {
- if (e.keyCode === 13) {
- var value = $(this).val();
- scope.$apply(function () {
- scope.onSearch(value);
- });
- }
+ box.on('search', function () {
+ var value = $(this).val();
+ scope.$apply(function () {
+ scope.onSearch(value);
+ });
});
// carry over search on route change