[open-ils-commits] [GIT] Evergreen ILS branch master updated. 4cdaec700215f07cf3bf35c8f09fb6dc347c0b4e

Evergreen Git git at git.evergreen-ils.org
Mon Oct 17 10:23:19 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  4cdaec700215f07cf3bf35c8f09fb6dc347c0b4e (commit)
      from  a816a7136c1947d6bda773dae30647e102849a55 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4cdaec700215f07cf3bf35c8f09fb6dc347c0b4e
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Tue Oct 4 15:28:36 2011 -0400

    Add "submit on enter" to all advanced search boxes
    
    Instead of just the one with an ID specified.
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/web/opac/skin/default/js/adv_global.js b/Open-ILS/web/opac/skin/default/js/adv_global.js
index 897b1ea..7422e90 100644
--- a/Open-ILS/web/opac/skin/default/js/adv_global.js
+++ b/Open-ILS/web/opac/skin/default/js/adv_global.js
@@ -23,7 +23,13 @@ function advgInit() {
 
 	var input = $n($('adv_global_trow'), 'term');
 	input.focus();
-	setEnterFunc(input, advSubmitGlobal);
+
+    var rows = $('adv_global_tbody').getElementsByTagName('tr');
+    for(var t = 0; t < rows.length; t++) {
+        if($n(rows[t], 'term')) {
+            setEnterFunc($n(rows[t], 'term'), advSubmitGlobal);
+        }
+    }
 
     if(getSort() && getSortDir()) {
 	    setSelector($('adv_global_sort_by'), getSort());

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/opac/skin/default/js/adv_global.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list