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

(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-2 / +1 lines)
Lines 443-449 function upSubfield(index) { Link Here
443
    var tag = line.parentNode; // get the dad of this line. (should be "<div id='tag_...'>")
443
    var tag = line.parentNode; // get the dad of this line. (should be "<div id='tag_...'>")
444
444
445
    // getting all visible subfields for this tag
445
    // getting all visible subfields for this tag
446
    var subfields = tag.querySelectorAll("div.subfield_line");
446
    var subfields = tag.querySelectorAll("div.subfield_line:not( [style*='display:none;'] )");
447
    var subfieldsLength = subfields.length;
447
    var subfieldsLength = subfields.length;
448
448
449
    if(subfieldsLength<=1) return; // nothing to do if there is just one subfield.
449
    if(subfieldsLength<=1) return; // nothing to do if there is just one subfield.
450
- 

Return to bug 17817