|
Lines 218-223
function CloneField(index, hideMarc, advancedMARCEditor) {
Link Here
|
| 218 |
id_input = selects[0].getAttribute('id')+new_key; |
218 |
id_input = selects[0].getAttribute('id')+new_key; |
| 219 |
selects[0].setAttribute('id',id_input); |
219 |
selects[0].setAttribute('id',id_input); |
| 220 |
selects[0].setAttribute('name',selects[0].getAttribute('name')+new_key); |
220 |
selects[0].setAttribute('name',selects[0].getAttribute('name')+new_key); |
|
|
221 |
selects[i].selectedIndex = -1; |
| 221 |
}catch(e2){ // it is a textarea if it s not a select or an input |
222 |
}catch(e2){ // it is a textarea if it s not a select or an input |
| 222 |
var textareas = divs[i].getElementsByTagName('textarea'); |
223 |
var textareas = divs[i].getElementsByTagName('textarea'); |
| 223 |
if( textareas.length > 0 ){ |
224 |
if( textareas.length > 0 ){ |
|
Lines 377-382
function CloneSubfield(index, advancedMARCEditor){
Link Here
|
| 377 |
id_input = selects[i].getAttribute('id')+new_key; |
378 |
id_input = selects[i].getAttribute('id')+new_key; |
| 378 |
selects[i].setAttribute('id',selects[i].getAttribute('id')+new_key); |
379 |
selects[i].setAttribute('id',selects[i].getAttribute('id')+new_key); |
| 379 |
selects[i].setAttribute('name',selects[i].getAttribute('name')+new_key); |
380 |
selects[i].setAttribute('name',selects[i].getAttribute('name')+new_key); |
|
|
381 |
selects[i].selectedIndex = -1; |
| 380 |
linkid = id_input; |
382 |
linkid = id_input; |
| 381 |
} |
383 |
} |
| 382 |
|
384 |
|
| 383 |
- |
|
|