Hitting ENTER in the term search box fires off a search now, as you would expect
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Aug 2010 04:10:07 +0000 (04:10 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Aug 2010 04:10:07 +0000 (04:10 +0000)
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

index 0bcf340..b09cbf0 100644 (file)
@@ -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);