From cac5edd81d58a399b2254f378593fdb44a893826 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 Signed-off-by: Nick Clemens --- .../intranet-tmpl/prog/en/includes/js_includes.inc | 26 +++++++------------- 1 files 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 6c02936..f91f734 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 %] -