From 689f0c29bd5b760f35fb1712535236a8d2fbd742 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 8 Nov 2018 13:17:36 -0500 Subject: [PATCH] JBAS-2101 Lost/paid uses default context (again) Signed-off-by: Bill Erickson --- Open-ILS/xul/staff_client/server/patron/bill2.js | 10 ++++------ Open-ILS/xul/staff_client/server/patron/bill_history.js | 5 ++--- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.js b/Open-ILS/xul/staff_client/server/patron/bill2.js index 915acc3a4e..243ea9c4c6 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill2.js +++ b/Open-ILS/xul/staff_client/server/patron/bill2.js @@ -935,12 +935,11 @@ function handle_printlostpaid() { var html = receipt.template_output().data(); JSAN.use('util.print'); - var print = new util.print('mail'); + var print = new util.print('default'); print.simple(html , { no_prompt: false, - content_type: 'text/html', - context: 'default' + content_type: 'text/html' }); } } @@ -1321,7 +1320,7 @@ function print_refundable_payments_receipt(mrp_ids) { var html = receipt.template_output().data(); JSAN.use('util.print'); - var print = new util.print('mail'); + var print = new util.print('default'); // Temporarily override the forced silent print option for lost & // paid receipts where we /always/ want to show the print dialog. @@ -1340,8 +1339,7 @@ function print_refundable_payments_receipt(mrp_ids) { print.simple(html , { no_prompt: false, // always prompt for lost payment receipts - content_type: 'text/html', - context: 'default' + content_type: 'text/html' }); if (silentPrintApplied) { diff --git a/Open-ILS/xul/staff_client/server/patron/bill_history.js b/Open-ILS/xul/staff_client/server/patron/bill_history.js index efddd53d6b..248eee14cc 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_history.js +++ b/Open-ILS/xul/staff_client/server/patron/bill_history.js @@ -438,12 +438,11 @@ function print_lostpaid_from_history() { var html = receipt.template_output().data(); JSAN.use('util.print'); - var print = new util.print('mail'); + var print = new util.print('default'); print.simple(html , { no_prompt: false, // always prompt for lost payment receipts - content_type: 'text/html', - context: 'default' + content_type: 'text/html' }); } } -- 2.11.0