View | Details | Raw Unified | Return to bug 17817
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-3 / +2 lines)
Lines 423-430 function upSubfield(index) { Link Here
423
    }
423
    }
424
    var tag = line.parentNode; // get the dad of this line. (should be "<div id='tag_...'>")
424
    var tag = line.parentNode; // get the dad of this line. (should be "<div id='tag_...'>")
425
425
426
    // getting all subfields for this tag
426
    // getting all visible subfields for this tag
427
    var subfields = tag.querySelectorAll("div.subfield_line");
427
    var subfields = tag.querySelectorAll("div.subfield_line:not( [style*='display:none;'] )");
428
    var subfieldsLength = subfields.length;
428
    var subfieldsLength = subfields.length;
429
429
430
    if(subfieldsLength<=1) return; // nothing to do if there is just one subfield.
430
    if(subfieldsLength<=1) return; // nothing to do if there is just one subfield.
431
- 

Return to bug 17817