From: Thomas Berezansky Date: Wed, 13 Feb 2013 14:06:07 +0000 (-0500) Subject: TPac: Invalidate 'current' barcode on invalid X-Git-Tag: sprint4-merge-nov22~3510 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0da2a803dc982611ad0b6fd0f4eded6baaef797a;p=working%2FEvergreen.git TPac: Invalidate 'current' barcode on invalid Hold placement should allow you to go back to the previous valid barcode. Signed-off-by: Thomas Berezansky Signed-off-by: Ben Shum Signed-off-by: Michael Peters --- diff --git a/Open-ILS/web/js/ui/default/opac/staff.js b/Open-ILS/web/js/ui/default/opac/staff.js index 22d6787630..599db8c298 100644 --- a/Open-ILS/web/js/ui/default/opac/staff.js +++ b/Open-ILS/web/js/ui/default/opac/staff.js @@ -42,6 +42,7 @@ function staff_hold_usr_barcode_changed(isload) { } if(barcode == undefined || barcode == '') { document.getElementById('patron_name').innerHTML = ''; + cur_hold_barcode = null; return; } if(barcode == cur_hold_barcode) @@ -51,6 +52,7 @@ function staff_hold_usr_barcode_changed(isload) { var load_info = xulG.get_barcode_and_settings(window, barcode, only_settings); if(load_info == false || load_info == undefined) { document.getElementById('patron_name').innerHTML = ''; + cur_hold_barcode = null; return; } cur_hold_barcode = load_info.barcode;