From a498b2f1af39e1867e94a7aca0279775389aa690 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 c31c48161b..b82aca11fa 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 @@ -1662,7 +1662,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) @@ -1729,7 +1728,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.43.2