Lines 255-261
function CloneSubfield(index, advancedMARCEditor){
Link Here
|
255 |
var original = document.getElementById(index); //original <div> |
255 |
var original = document.getElementById(index); //original <div> |
256 |
var clone = original.cloneNode(true); |
256 |
var clone = original.cloneNode(true); |
257 |
var new_key = CreateKey(); |
257 |
var new_key = CreateKey(); |
258 |
|
|
|
259 |
// set the attribute for the new 'div' subfields |
258 |
// set the attribute for the new 'div' subfields |
260 |
var inputs = clone.getElementsByTagName('input'); |
259 |
var inputs = clone.getElementsByTagName('input'); |
261 |
var selects = clone.getElementsByTagName('select'); |
260 |
var selects = clone.getElementsByTagName('select'); |
Lines 270-275
function CloneSubfield(index, advancedMARCEditor){
Link Here
|
270 |
inputs[i].setAttribute('name',inputs[i].getAttribute('name')+new_key); |
269 |
inputs[i].setAttribute('name',inputs[i].getAttribute('name')+new_key); |
271 |
linkid = id_input; |
270 |
linkid = id_input; |
272 |
} |
271 |
} |
|
|
272 |
|
273 |
// Plugin input |
273 |
// Plugin input |
274 |
if( $(inputs[1]).hasClass('framework_plugin') ) { |
274 |
if( $(inputs[1]).hasClass('framework_plugin') ) { |
275 |
var oldcontrol= original.getElementsByTagName('input')[1]; |
275 |
var oldcontrol= original.getElementsByTagName('input')[1]; |
Lines 326-331
function CloneSubfield(index, advancedMARCEditor){
Link Here
|
326 |
} |
326 |
} |
327 |
// insert this line on the page |
327 |
// insert this line on the page |
328 |
original.parentNode.insertBefore(clone,original.nextSibling); |
328 |
original.parentNode.insertBefore(clone,original.nextSibling); |
|
|
329 |
// delete data of cloned subfield |
330 |
document.getElementById(linkid).value = ""; |
329 |
} |
331 |
} |
330 |
|
332 |
|
331 |
function AddEventHandlers (oldcontrol, newcontrol, newinputid ) { |
333 |
function AddEventHandlers (oldcontrol, newcontrol, newinputid ) { |
332 |
- |
|
|