Bug 18119: Fix comment in cataloguing.js

Test plan:
Go to cataloging, and try something which depends on javascript -
collapse/uncollapse fields, open authority search window, ...
    -> without patch it is not working
    -> with patch it is working correctly

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 7698f6453c)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
Josef Moravec 2017-02-15 06:52:32 +00:00 committed by Katrin Fischer
parent 7736967c69
commit 7c44635134
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ function ExpandField(index) {
var original = document.getElementById(index); //original <div>
var divs = original.getElementsByTagName('div');
for(var i=0,divslen = divs.length ; i<divslen ; i++){ // foreach div
if(divs[i].hasAttribute('id') == 0 ) {continue; } # div elementis specific to Select2
if(divs[i].hasAttribute('id') == 0 ) {continue; } // div element is specific to Select2
if(divs[i].getAttribute('id').match(/^subfield/)){ // if it s a subfield
if (!divs[i].style.display) {
// first time => show all subfields