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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl (-10 / +2 lines)
Lines 436-456 function CloneField(index) { Link Here
436
                            anchors[j].setAttribute('onclick',"CloneField('" + new_id + "')");
436
                            anchors[j].setAttribute('onclick',"CloneField('" + new_id + "')");
437
                        } else if (anchors[j].getAttribute('class') == 'buttonMinus') {
437
                        } else if (anchors[j].getAttribute('class') == 'buttonMinus') {
438
                            anchors[j].setAttribute('onclick',"UnCloneField('" + new_id + "')");
438
                            anchors[j].setAttribute('onclick',"UnCloneField('" + new_id + "')");
439
                        } else if (anchors[j].getAttribute('class') == 'expandfield') {
440
                            anchors[j].setAttribute('onclick',"ExpandField('" + new_id + "')");
439
                        }
441
                        }
440
                    }
442
                    }
441
                }
443
                }
442
                catch(e){
444
                catch(e){
443
                    // do nothig CloneButtonPlus doesn't exist.
445
                    // do nothig CloneButtonPlus doesn't exist.
444
                }
446
                }
445
                // setting its 'Expand' property
446
                var ExpandFieldA=0;
447
                try {
448
                    ExpandFieldA = divs[i].getElementsByTagName('a')[0];
449
                    ExpandFieldA.setAttribute('onclick',"ExpandField('" + divs[i].parentNode.getAttribute('id') + "')");
450
                }
451
                catch(e){
452
                    // do nothig if ButtonPlus & CloneButtonPlus don t exist.
453
                }
454
447
455
            }
448
            }
456
        }
449
        }
457
- 

Return to bug 5735