|
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 |
- |
|
|