From 7f92a4d509d9a04e0fa2928122bd1106014d4421 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Fri, 5 Jul 2019 14:36:05 +0000 Subject: [PATCH] lp1437103 Allow Receipts to Print when Suppressing Popups - Move suppress_popup check further along and allow transit receipts to properly print when popups suppressed. Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/web/js/ui/default/staff/circ/services/circ.js Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/circ/services/circ.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js index 502b96aa40..4a3ce9c54f 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js @@ -1779,7 +1779,6 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl } service.route_dialog = function(tmpl, evt, params, options) { - if (options.suppress_popups) return; if (angular.isArray(evt)) evt = evt[0]; return service.collect_route_data(tmpl, evt, params, options) @@ -1846,7 +1845,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl // when auto-print is on, skip the dialog and go straight // to printing. - if (options.auto_print_holds_transits) + if (options.auto_print_holds_transits || options.suppress_popups) return print_transit(template); return $uibModal.open({ -- 2.11.0