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