Bug 27561: Remove type attribute from script tags: Various templates

This patch replaces remaining instances of <script type="javascript"> in
templates with "<script>."

To test, apply the patch and check the changes to the template. Verify
that the changes look correct.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 5c68609110)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 07e6647167)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2021-01-27 12:48:57 +00:00 committed by Andrew Fuerste-Henry
parent f83f0f75c2
commit bcafcac476
17 changed files with 21 additions and 19 deletions

View File

@ -829,7 +829,7 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript">
<script>
$(document).ready(function() {
$('#abouttabs').tabs();
});

View File

@ -121,7 +121,9 @@
</div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript">
[% Asset.js("js/desk_selection.js") | $raw %]
[% Asset.js("js/register_selection.js") | $raw %]
<script>
$(document).ready( function() {
if ( document.location.hash ) {
$( '#loginform' ).append( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' );

View File

@ -64,7 +64,7 @@
[% END %]
[% IF CAN_user_clubs_enroll %]
<script type="text/javascript">
<script>
function loadEnrollmentForm( id ) {
$("body").css("cursor", "progress");
$('#clubs-tab').load('/cgi-bin/koha/clubs/patron-enroll.pl?borrowernumber=[% borrowernumber | html %]&id=' + id, function() {

View File

@ -36,7 +36,7 @@
</form>
</div>
<script type="text/javascript">
<script>
function addEnrollment() {
$("body").css("cursor", "progress");
$.ajax({

View File

@ -119,7 +119,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
<script>
var search = 1;
$(document).ready(function(){
$("#info").hide();

View File

@ -156,7 +156,7 @@
[% IF ( departments ) %]
[% MACRO jsinclude BLOCK %]
<script type="text/javascript">
<script>
$(document).ready(function(){
$( "#find_instructor" ).autocomplete({
source: "/cgi-bin/koha/circ/ysearch.pl",

View File

@ -219,7 +219,7 @@
</div> <!-- /.container-fluid -->
[% MACRO jsinclude BLOCK %]
<script type="text/javascript">
<script>
//<![CDATA[
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
$(document).ready(function(){

View File

@ -191,7 +191,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'str/members-menu.inc' %]
[% Asset.js("js/members-menu.js") | $raw %]
<script type="text/javascript">
<script>
$(function() {
$( "#pending_updates" ).accordion();
});

View File

@ -51,7 +51,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
<script>
$(document).ready(function() {
$("#catst").dataTable($.extend(true, {}, dataTablesDefaults, {
@ -65,7 +65,7 @@
});
</script>
[% IF ( SUCCESS ) %]
<script type="text/javascript">
<script>
self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]';
window.close();
</script>

View File

@ -71,7 +71,7 @@
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/background-job-progressbar.js") | $raw %]
[% Asset.js("js/file-upload.js") | $raw %]
<script type="text/javascript">
<script>
var xhr;
$(document).ready(function(){
$("#enqueuefile").hide();

View File

@ -37,7 +37,7 @@
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Cancel</a></div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript">
<script>
function GetIt(aqbooksellerid,name){
opener.document.f.aqbooksellerid.value = aqbooksellerid;
opener.document.f.aqbooksellername.value = name;

View File

@ -62,7 +62,7 @@
<div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript">
<script>
$(document).ready(function(){
$(".select_title").on("click",function(e){
e.preventDefault();

View File

@ -39,7 +39,7 @@
<div id="closewindow" class="noprint"><a class="btn btn-default btn-default" id="print_slip" href="#"><i class="fa fa-print"></i> Print</a> <a class="btn btn-default btn-default close" href="#">Close</a></div>
[% MACRO jsinclude BLOCK %]
<script type="text/javascript">
<script>
$(document).ready(function(){
$("#print_slip").on("click",function(e){
e.preventDefault();

View File

@ -79,7 +79,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
<script type="text/javascript">
<script>
$(document).ready(function(){
$(".close").on("click", function(e){
e.preventDefault();

View File

@ -288,8 +288,8 @@
[% Asset.js("js/tools-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
[% Asset.js("js/pages/batchMod.js") | $raw %]
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
<script type="text/javascript">
[% Asset.js("js/browser.js") | $raw %]
<script>
// Prepare array of all column headers, incrementing each index by
// two to accommodate control and title columns
var allColumns = new Array([% FOREACH item_header_loo IN item_header_loop %]'[% loop.count | html %]'[% UNLESS ( loop.last ) %],[% END %][% END %]);

View File

@ -10,7 +10,7 @@
[% INCLUDE 'datatables.inc' %]
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
[% Asset.js("js/pages/batchMod.js") | $raw %]
<script type="text/javascript">
<script>
//<![CDATA[
// Prepare array of all column headers, incrementing each index by

View File

@ -274,7 +274,7 @@
[% Asset.js("js/tools-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'calendar.inc' %]
<script type="text/javascript">
<script>
function checkForm() {
if ( $('#uploadbarcodes').val() ) {
if ( !(