Bug 22981: Remove type attribute from script tags: Catalog

This patch removes the "type" attribute from <script> tags in several
catalog-related templates.

To test, apply the patch and confirm that the following work properly
without any JavaScript errors in the browser console:

 - Catalog -> Advanced search
 - Catalog -> Item search
 - Search history

Validating the HTML source of these pages should return no errors
related to the "type" attribute.

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2019-05-23 18:35:31 +00:00 committed by Nick Clemens
parent 22eba6b957
commit 122d92b9f8
3 changed files with 3 additions and 4 deletions

View File

@ -280,7 +280,7 @@
[% MACRO jsinclude BLOCK %]
[% Asset.js("lib/hc-sticky.js") | $raw %]
<script type="text/JavaScript">
<script>
/**
* Function add_field();
* This function allows to display a new field to search.

View File

@ -220,7 +220,7 @@
[% INCLUDE 'datatables.inc' %]
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
[% Asset.js("lib/hc-sticky.js") | $raw %]
<script type="text/javascript">
<script>
var authorised_values = [% authorised_values_json | $raw %];
function loadAuthorisedValuesSelect(select) {

View File

@ -193,8 +193,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
<script type="text/javascript">
//<![CDATA[
<script>
$(document).ready(function() {
// We show table ordered by descending dates by default
// (so that the more recent query is shown first)