From: phasefx Date: Thu, 28 May 2009 16:20:14 +0000 (+0000) Subject: offline interfaces were only clearing on 'Save these transactions' if receipt printin... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d892e53b9e06ae58ecfb5a89843d53776c58646e;p=Evergreen.git offline interfaces were only clearing on 'Save these transactions' if receipt printing was enabled. doh, thought I had fixed that git-svn-id: svn://svn.open-ils.org/ILS/trunk@13253 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js index 8c74f39caa..68b6d74d51 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js @@ -123,7 +123,10 @@ function next_patron() { g.error.sdump('D_ERROR','print: ' + E); alert('print: ' + E); } - } + } else { + g.list.clear(); + var x = $('i_barcode'); x.value = ''; x.focus(); + } } catch(E) { dump(E+'\n'); alert(E); diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js index 19da674d4d..2648cef087 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js @@ -284,6 +284,12 @@ function next_patron(cancel) { g.error.sdump('D_ERROR','print: ' + E); alert('print: ' + E); } + } else { + g.list.clear(); + var x = $('i_barcode'); x.value = ''; + x = $('p_barcode'); x.value = ''; + x.setAttribute('disabled','false'); x.disabled = false; + x.focus(); } } catch(E) { dump(E+'\n'); alert(E); diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js index 8aa5d2aeaa..aeda8e5d0e 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js @@ -126,7 +126,10 @@ function next_patron() { g.error.sdump('D_ERROR','print: ' + E); alert('print: ' + E); } - } + } else { + g.list.clear(); + var x = $('i_barcode'); x.value = ''; x.focus(); + } } catch(E) { dump(E+'\n'); alert(E); } diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js index a877f0c695..b7795a3490 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js @@ -237,7 +237,11 @@ function next_patron(cancel) { g.error.sdump('D_ERROR','print: ' + E); alert('print: ' + E); } - } + } else { + g.list.clear(); + var x = $('i_barcode'); x.value = ''; + x = $('p_barcode'); x.value = ''; x.focus(); + } } } catch(E) { dump(E+'\n'); alert(E);