From: dbs Date: Fri, 20 Aug 2010 04:10:07 +0000 (+0000) Subject: Hitting ENTER in the term search box fires off a search now, as you would expect X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a23af5ce0d6bc8681d44c0e1221b03d549515062;p=evergreen%2Fpines.git 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 --- 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 0bcf3406c1..b09cbf0219 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);