From 399dcaa222c8e49da9aba8b6cac16928608f89ae Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 9 Jan 2017 16:31:19 +0000 Subject: [PATCH] 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 Correction for QA: Removed contditional around footer JS (from copy-paste) because it will always be true. Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/basket/basket.tt | 12 ++++++++---- 1 file changed, 8 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 30f276c040..428e5d455a 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,11 @@ - + [% INCLUDE js_includes.inc %] + [% UNLESS ( print_basket ) %] + [% INCLUDE 'datatables.inc' %] + + + [% END %] + -- 2.39.5