Bugzilla – Attachment 91809 Details for
Bug 23226
Remove type attribute from script tags: Cataloging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23226: Remove type attribute from script tags: Cataloging
Bug-23226-Remove-type-attribute-from-script-tags-C.patch (text/plain), 2.21 KB, created by
Nick Clemens (kidclamp)
on 2019-07-26 12:59:05 UTC
(
hide
)
Description:
Bug 23226: Remove type attribute from script tags: Cataloging
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-07-26 12:59:05 UTC
Size:
2.21 KB
patch
obsolete
>From 885288156cfd89a541b0449a5904297875fbfcc5 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 27 Jun 2019 13:24:36 +0000 >Subject: [PATCH] Bug 23226: Remove type attribute from script tags: Cataloging > >This patch removes the "type" attribute from <script> tags one >cataloging and one authorities template. > >To test, apply the patch and confirm that examples of affected pages >work properly without any JavaScript errors in the browser console: > > - Cataloging -> Cataloging home page > - Cataloging -> Cataloging home page -> Search results > - Authorities -> New authority -> New from Z39.50/SRU > >Validating the HTML source of any of these pages should return no errors >related to the "type" attribute. > >Signed-off-by: frederik chenier <frederik.chenier@inlibro.com> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt | 2 +- > .../intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt >index de32f38bce..46157389b8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt >@@ -215,7 +215,7 @@ > </div> > > [% MACRO jsinclude BLOCK %] >- <script type="text/javascript"> >+ <script> > > $(document).ready(function() { > //Set focus to cataloging search >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt >index 349b1c2f30..482cae354f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt >@@ -170,7 +170,7 @@ > [% MACRO jsinclude BLOCK %] > [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] > [% INCLUDE 'datatables.inc' %] >- <script type="text/javascript"> >+ <script> > $(document).ready(function(){ > > $(".dropdown").on("hidden.bs.dropdown", function(){ >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23226
:
91053
|
91667
| 91809