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:
parent
22eba6b957
commit
122d92b9f8
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue