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.
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
[% 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>