[Koha-patches] [SIGNED OFF] Bug 5735: Expanding/collapsing cloned fields in editor takes original field
Colin Campbell
colin.campbell at ptfs-europe.com
Thu Feb 10 18:30:31 CET 2011
From: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Adds corrected onclick response for expanding marc tags.
Removes some lines that did not work as promised.
Signed-off-by: Colin Campbell <colin.campbell at ptfs-europe.com>
---
.../prog/en/modules/cataloguing/addbiblio.tmpl | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl
index b33f897..a588a2b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl
@@ -436,21 +436,14 @@ function CloneField(index) {
anchors[j].setAttribute('onclick',"CloneField('" + new_id + "')");
} else if (anchors[j].getAttribute('class') == 'buttonMinus') {
anchors[j].setAttribute('onclick',"UnCloneField('" + new_id + "')");
+ } else if (anchors[j].getAttribute('class') == 'expandfield') {
+ anchors[j].setAttribute('onclick',"ExpandField('" + new_id + "')");
}
}
}
catch(e){
// do nothig CloneButtonPlus doesn't exist.
}
- // setting its 'Expand' property
- var ExpandFieldA=0;
- try {
- ExpandFieldA = divs[i].getElementsByTagName('a')[0];
- ExpandFieldA.setAttribute('onclick',"ExpandField('" + divs[i].parentNode.getAttribute('id') + "')");
- }
- catch(e){
- // do nothig if ButtonPlus & CloneButtonPlus don t exist.
- }
}
}
--
1.7.4
More information about the Koha-patches
mailing list