[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. f3e2ab810f0cf504445ddf166dce0596c421b9a3
Evergreen Git
git at git.evergreen-ils.org
Wed Oct 3 10:54:46 EDT 2012
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_3 has been updated
via f3e2ab810f0cf504445ddf166dce0596c421b9a3 (commit)
from 18966cef95eca990d4fdd39a6bbb6f36f5350367 (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 f3e2ab810f0cf504445ddf166dce0596c421b9a3
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Thu Sep 20 15:45:05 2012 -0400
TPac: Disable "Enter places hold" for staff
This should prevent barcode scanners from auto-submitting on scan.
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2
index 730bc6f..2066616 100644
--- a/Open-ILS/src/templates/opac/parts/place_hold.tt2
+++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2
@@ -22,7 +22,7 @@
<label for="hold_usr_is_requestor_not">
[% l("Place hold for patron by barcode:") %]
</label>
- <input type="text" name="hold_usr" id="hold_usr_input" onchange="staff_hold_usr_barcode_changed();" /><br />
+ <input type="text" name="hold_usr" id="hold_usr_input" onchange="staff_hold_usr_barcode_changed();" onkeypress="return no_hold_submit(event)" /><br />
<input type="hidden" id="staff_barcode" value="[% ctx.staff_recipient.card.barcode | html %]"/>
<span>
<input type="radio" id="hold_usr_is_requestor"
diff --git a/Open-ILS/web/js/ui/default/opac/staff.js b/Open-ILS/web/js/ui/default/opac/staff.js
index 1cb52f3..6e2cbda 100644
--- a/Open-ILS/web/js/ui/default/opac/staff.js
+++ b/Open-ILS/web/js/ui/default/opac/staff.js
@@ -19,6 +19,13 @@ function staff_hold_usr_input_disabler(input) {
Boolean(Number(input.value));
staff_hold_usr_barcode_changed();
}
+function no_hold_submit(event) {
+ if (event.which == 13) {
+ staff_hold_usr_barcode_changed();
+ return false;
+ }
+ return true;
+}
var cur_hold_barcode = undefined;
function staff_hold_usr_barcode_changed(isload) {
if(typeof xulG != 'undefined' && xulG.get_barcode_and_settings) {
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/templates/opac/parts/place_hold.tt2 | 2 +-
Open-ILS/web/js/ui/default/opac/staff.js | 7 +++++++
2 files changed, 8 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list