Bugzilla – Attachment 48477 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.75 KB, created by
Owen Leonard
on 2016-02-29 18:42:53 UTC
(
hide
)
Description:
Bug 15940 - Remove unused JavaScript from authorities MARC subfield structure
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-02-29 18:42:53 UTC
Size:
1.75 KB
patch
obsolete
>From 6f51f1e61ccfdf037ddea6e6594c9b82656ab1a8 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 >Content-Type: text/plain; charset="utf-8" > >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." >--- > .../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.1.4
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