Bugzilla – Attachment 48606 Details for
Bug 15940
Remove unused JavaScript from authorities MARC subfield structure
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15940 - Remove unused JavaScript from authorities MARC subfield structure
Bug-15940---Remove-unused-JavaScript-from-authorit.patch (text/plain), 1.88 KB, created by
Frédéric Demians
on 2016-03-03 09:04:46 UTC
(
hide
)
Description:
Bug 15940 - Remove unused JavaScript from authorities MARC subfield structure
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2016-03-03 09:04:46 UTC
Size:
1.88 KB
patch
obsolete
>From 0baf4a1a0f43ab3f9e448eefb4889df53bb8dabb Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 29 Feb 2016 13:39:16 -0500 >Subject: [PATCH] Bug 15940 - Remove unused JavaScript from authorities MARC > subfield structure >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >The authorities MARC subfield structure template contains some unused >JavaScript, "function displayMoreConstraint()" This patch removes it. > >To test, apply the patch and go to Administration -> Authority types -> >MARC structure -> Subfields -> Edit subfields and confirm that there are >no JavaScript errors and tab switching works correctly. > >A search of the source code should show no instances of >"displayMoreConstraint." > >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> > No regression, no JS warning. >--- > .../prog/en/modules/admin/auth_subfields_structure.tt | 13 ------------- > 1 file changed, 13 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt >index 4b7e873..0d5bff3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt >@@ -3,22 +3,9 @@ > [% INCLUDE 'doc-head-close.inc' %] > <script type="text/javascript"> > //<![CDATA[ >- > $(document).ready(function() { > $('#subfieldtabs').tabs(); > }); >- >-function displayMoreConstraint(numlayer){ >- var thisdiv = document.getElementById(numlayer); >- if(thisdiv.getAttribute("class") == "content_hidden"){ >- thisdiv.removeAttribute('class'); >- thisdiv.setAttribute("class","content_visible"); >- } else { >- thisdiv.removeAttribute('class'); >- thisdiv.setAttribute("class","content_hidden"); >- } >-} >- > //]]> > </script> > </head> >-- >2.7.1
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 15940
:
48477
|
48606
|
48608