[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. 37fec6eb8cd4bedba2471c05c0496b9c67ae3e21
Evergreen Git
git at git.evergreen-ils.org
Mon Oct 17 10:24:34 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, rel_2_0 has been updated
via 37fec6eb8cd4bedba2471c05c0496b9c67ae3e21 (commit)
from 3b9be86b7a3cf2c2b5548ef0e16928add26f3e5d (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 37fec6eb8cd4bedba2471c05c0496b9c67ae3e21
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 ecc6417..fe876f4 100644
--- a/Open-ILS/web/opac/skin/default/js/adv_global.js
+++ b/Open-ILS/web/opac/skin/default/js/adv_global.js
@@ -38,7 +38,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