From a23af5ce0d6bc8681d44c0e1221b03d549515062 Mon Sep 17 00:00:00 2001 From: dbs Date: Fri, 20 Aug 2010 04:10:07 +0000 Subject: [PATCH] Hitting ENTER in the term search box fires off a search now, as you would expect git-svn-id: svn://svn.open-ils.org/ILS/trunk@17279 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/cat/authority/list.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/cat/authority/list.js b/Open-ILS/web/js/ui/default/cat/authority/list.js index 0bcf3406c..b09cbf021 100644 --- a/Open-ILS/web/js/ui/default/cat/authority/list.js +++ b/Open-ILS/web/js/ui/default/cat/authority/list.js @@ -132,8 +132,15 @@ function authListInit() { } dojo.connect(dijit.byId('authTerm'), 'onBlur', function() { dijit.byId('authPage').attr('value', 0); - displayRecords(); + displayRecords(); + }); + dojo.connect(dijit.byId('authTerm'), 'onKeyPress', function(evt) { + if (evt.keyCode == dojo.keys.ENTER) { + dijit.byId('authPage').attr('value', 0); + displayRecords(); + } }); + } dojo.addOnLoad(authListInit); -- 2.11.0