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>
[% 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.
[% 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) {
[% 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)