TPac: Load name from patron place hold interface
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 12 Feb 2013 14:47:30 +0000 (09:47 -0500)
committerBen Shum <bshum@biblio.org>
Wed, 13 Feb 2013 18:23:18 +0000 (13:23 -0500)
only_settings is applied from there, so check if a barcode was entered.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Open-ILS/web/js/ui/default/opac/staff.js

index 0e403ab..22d6787 100644 (file)
@@ -84,7 +84,7 @@ function staff_hold_usr_barcode_changed(isload) {
         }
         update_elements = document.getElementsByName('email_address');
         for(var i in update_elements) update_elements[i].textContent = load_info.user_email;
-        if(!document.getElementById('hold_usr_is_requestor').checked && !only_settings) {
+        if(!document.getElementById('hold_usr_is_requestor').checked && document.getElementById('hold_usr_input').value) {
             document.getElementById('patron_name').innerHTML = load_info.patron_name;
         }
         // Ok, now we can allow submitting again