JBAS-2101 Lost/paid uses default context (again)
authorBill Erickson <berickxx@gmail.com>
Thu, 8 Nov 2018 18:17:36 +0000 (13:17 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/xul/staff_client/server/patron/bill2.js
Open-ILS/xul/staff_client/server/patron/bill_history.js

index 915acc3..243ea9c 100644 (file)
@@ -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) {
index efddd53..248eee1 100644 (file)
@@ -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'
         });
     }
 }