Lines 543-548
function CloneItemSubfield(original){
Link Here
|
543 |
var new_id = original.getAttribute('id')+new_key; |
543 |
var new_id = original.getAttribute('id')+new_key; |
544 |
clone.setAttribute('id',new_id); |
544 |
clone.setAttribute('id',new_id); |
545 |
|
545 |
|
|
|
546 |
// Don't clone "RegEx". We don't handle it for repeatable subfields |
547 |
var links = clone.getElementsByTagName('a'); |
548 |
for( i = 0 ,len = links.length ; i < len ; i++){ |
549 |
if( $(links[i]).hasClass('field_regex') ) { |
550 |
$(links[i]).remove(); |
551 |
} |
552 |
} |
553 |
|
546 |
// insert this line on the page |
554 |
// insert this line on the page |
547 |
original.parentNode.insertBefore(clone,original.nextSibling); |
555 |
original.parentNode.insertBefore(clone,original.nextSibling); |
548 |
Select2Utils.initSelect2($(original).find('select')); |
556 |
Select2Utils.initSelect2($(original).find('select')); |
549 |
- |
|
|