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

(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-1 / +6 lines)
Lines 324-329 function CloneField(index, hideMarc, advancedMARCEditor) { Link Here
324
    // insert this line on the page
324
    // insert this line on the page
325
    original.parentNode.insertBefore(clone,original.nextSibling);
325
    original.parentNode.insertBefore(clone,original.nextSibling);
326
326
327
    $(clone).find("ul.sortable_subfield").each((i, e) => {
328
        Sortable.create(e, {
329
            animation: 150,
330
        });
331
    });
332
327
    Select2Utils.initSelect2($(original).find('select'));
333
    Select2Utils.initSelect2($(original).find('select'));
328
    Select2Utils.initSelect2($(clone).find('select'));
334
    Select2Utils.initSelect2($(clone).find('select'));
329
}
335
}
330
- 

Return to bug 35383