From 9a74e14a0ad8430895a73300dd3e64146d6dbf24 Mon Sep 17 00:00:00 2001
From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Fri, 20 Aug 2010 04:02:44 +0000
Subject: [PATCH] When initiating a new authority search, reset the pager to
 zero to avoid surprises

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17278 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 Open-ILS/web/js/ui/default/cat/authority/list.js | 5 ++++-
 1 file changed, 4 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 367c099582..0bcf3406c1 100644
--- a/Open-ILS/web/js/ui/default/cat/authority/list.js
+++ b/Open-ILS/web/js/ui/default/cat/authority/list.js
@@ -130,7 +130,10 @@ function authListInit() {
         dijit.byId('authTerm').attr('value', term);
         displayRecords();
     }
-    dojo.connect(dijit.byId('authTerm'), 'onBlur', 'displayRecords');
+    dojo.connect(dijit.byId('authTerm'), 'onBlur', function() {
+        dijit.byId('authPage').attr('value', 0);
+       displayRecords();
+    });
 }
 dojo.addOnLoad(authListInit);
 
-- 
2.11.0