From ac6f53940260e87388a289e0c1b0108d47ddd965 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 7 Oct 2024 07:14:44 +0100 Subject: [PATCH] Bug 35267: Move JS to bottom in printslip --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt index a50cdcd445f..faaa4a38fc1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt @@ -2,6 +2,7 @@ [% USE Asset %] [% USE Koha %] [% PROCESS 'i18n.inc' %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% UNLESS slips && slips.size %] [% SET slips = [{content => slip, is_html => !plain, style => style, id => id }] %] @@ -35,6 +36,7 @@ [% INCLUDE 'doc-head-close.inc' %] + [% Asset.css("css/print.css") | $raw %] [% IF ( Koha.Preference('PrintSlipStylesheet') ) %] @@ -43,7 +45,6 @@ [% IF slip.style %][% END %] [% END %] -[% INCLUDE 'slip-print.inc' #printThenClose %]
@@ -62,4 +63,8 @@ [% END %] [% END %] + [% MACRO jsinclude BLOCK %] + [% INCLUDE 'slip-print.inc' #printThenClose %] + [% END %] + [% INCLUDE 'intranet-bottom.inc' %] -- 2.46.2