From 84d8df6938cdcb6c18a379880dd1369c0f03898f 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. --- .../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 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 %] -