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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt (+7 lines)
Lines 260-265 Link Here
260
                        $(tag_editor).hide();
260
                        $(tag_editor).hide();
261
                        $(this).html('Text');
261
                        $(this).html('Text');
262
                        $(disable_input).prop('disabled', true);
262
                        $(disable_input).prop('disabled', true);
263
                        let input_name = $(editor).attr('name');
264
                        let cloned = $("input[name='"+input_name+"']");
265
                        if ( cloned.length > 1 ) {
266
                            for( i = 1 ; i < cloned.length ; i++){
267
                                $(cloned[i]).parent().remove();
268
                            }
269
                        }
263
                    } else {
270
                    } else {
264
                        $(editor).show();
271
                        $(editor).show();
265
                        $(tag_editor).show();
272
                        $(tag_editor).show();
(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-1 / +8 lines)
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
- 

Return to bug 28445