From bca1f36fb3bda440e62d96701f44370cb3cdd108 Mon Sep 17 00:00:00 2001 From: Rajesh Duggal Date: Sat, 4 Oct 2014 05:30:56 -0400 Subject: [PATCH] Trigger search on keyup event on search textfield Firefox 32.0.3 will trigger the search event as the user edits the search text field as it does in Chrome. Fixes #31 --- app/assets/javascripts/app/controllers/sidebar.module.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/sidebar.module.coffee b/app/assets/javascripts/app/controllers/sidebar.module.coffee index 56665c6..687304c 100644 --- a/app/assets/javascripts/app/controllers/sidebar.module.coffee +++ b/app/assets/javascripts/app/controllers/sidebar.module.coffee @@ -24,7 +24,7 @@ class Sidebar extends Controller @on('click', '.profile', @profile) @on('click', '.newPost', @newPost) @on('click', '.landing', @landing) - @on('search focus', 'input[type=search]', @search) + @on('keyup', 'input[type=search]', @search) $(window).on('keydown', @keydown) State.change 'sidebar', @setState @@ -162,4 +162,4 @@ class Sidebar extends Controller $(window).off('keydown', @keydown) $(document).off('wake', @refresh) -module.exports = Sidebar \ No newline at end of file +module.exports = Sidebar