From 1f07d851b5f4f38545c542fb056ca271ff6befb1 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 9 Jan 2017 16:31:19 +0000 Subject: [PATCH] [SIGNED-OFF] Bug 19356: Move staff client cart JavaScript to the footer This patch modifies the staff client cart template so that JavaScript is included in the footer instead of the header. To test, apply the patch and test the JavaScript-driven features of the cart: All button controls, DataTables functionality. Signed-off-by: Aleisha Amohia --- koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt index 30f276c..be56b47 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -1,3 +1,4 @@ +[% SET footerjs = 1 %] [% BLOCK controls %]

Select all Clear all @@ -31,10 +32,7 @@ @import url([% interface %]/[% theme %]/css/print.css); [% ELSE %][% INCLUDE 'doc-head-close.inc' %] - - -[% INCLUDE 'datatables.inc' %] [% END %] [% IF ( print_basket ) %][% ELSE %][% END %] @@ -289,5 +287,13 @@ - + [% IF ( footerjs ) %] + [% INCLUDE js_includes.inc %] + [% UNLESS ( print_basket ) %] + [% INCLUDE 'datatables.inc' %] + + + [% END %] + [% END %] + -- 2.1.4