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

(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-1 / +6 lines)
Lines 267-272 function CloneSubfield(index, advancedMARCEditor){ Link Here
267
        id_input = inputs[i].getAttribute('id')+new_key;
267
        id_input = inputs[i].getAttribute('id')+new_key;
268
        inputs[i].setAttribute('id',id_input);
268
        inputs[i].setAttribute('id',id_input);
269
        inputs[i].setAttribute('name',inputs[i].getAttribute('name')+new_key);
269
        inputs[i].setAttribute('name',inputs[i].getAttribute('name')+new_key);
270
        if(inputs[i].getAttribute("id") && inputs[i].getAttribute("id").match(/^tag_/) ){
271
            inputs[i].value = "";
272
        }
270
        linkid = id_input;
273
        linkid = id_input;
271
    }
274
    }
272
275
Lines 288-293 function CloneSubfield(index, advancedMARCEditor){ Link Here
288
        id_input = textareas[i].getAttribute('id')+new_key;
291
        id_input = textareas[i].getAttribute('id')+new_key;
289
        textareas[i].setAttribute('id',textareas[i].getAttribute('id')+new_key);
292
        textareas[i].setAttribute('id',textareas[i].getAttribute('id')+new_key);
290
        textareas[i].setAttribute('name',textareas[i].getAttribute('name')+new_key);
293
        textareas[i].setAttribute('name',textareas[i].getAttribute('name')+new_key);
294
        if(textareas[i].getAttribute("id") && textareas[i].getAttribute("id").match(/^tag_/) ){
295
            textareas[i].value = "";
296
        }
291
        linkid = id_input;
297
        linkid = id_input;
292
    }
298
    }
293
299
294
- 

Return to bug 17725