From 0ce8e5ced3edb93ef3f082f96be078f76c7ff3a5 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 6 Jun 2008 04:24:30 +0000 Subject: [PATCH] oops, logic error. This fixes offline mode so that the 'Save these transactions' button will correctly reset the interface when receipt printing is not selected git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_2@9773 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js | 5 ++++- Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js | 8 +++++++- .../xul/staff_client/chrome/content/circ/offline_in_house_use.js | 5 ++++- Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) 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 3f77163958..0aada4cf59 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 @@ -119,7 +119,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 aebf4f10f3..32ab331dc6 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 @@ -278,7 +278,13 @@ 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 5837f4a27c..a329318eca 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 @@ -122,7 +122,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 1892e1e20a..b0b06a1c08 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 @@ -235,7 +235,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); -- 2.11.0