From b1d8aa7d5b33f792e37463a7723fa64026c97466 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 7 Nov 2018 18:55:57 +0000 Subject: [PATCH] Bug 21784: Clean up js_includes.inc This patch cleans up js_includes.inc by removing script "type" attributes which are now invalid HTML. The patch also removes "CDATA" markers from script blocks. They have been unnecessary since we stopped using an XHTML doctype. To test, apply the patch and look at various pages in the staff client to confirm that no JavaScript-driven interactions are broken. Signed-off-by: Liz Rea Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/includes/js_includes.inc | 26 ++++++++-------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc index 6c02936bef..f91f734788 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc @@ -4,7 +4,7 @@ [% USE To %] [%# Prevent XFS attacks -%] [% UNLESS popup %] - [% END %] [% IF ( virtualshelves || intranetbookbag ) %] - [% Asset.js("js/basket.js") | $raw %] @@ -60,19 +56,15 @@ [% IF LocalCoverImages %] [% Asset.js("js/localcovers.js") | $raw %] - [% END %] [% IF Koha.Preference('AudioAlerts') || AudioAlertsPage %] -