BUGFIX for unimarc 4XX plugin

We don't have to count parentNode, but grand-parentNode

Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
Paul POULAIN 2007-09-12 16:00:02 +02:00 committed by Chris Cormack
parent f8db0248f5
commit e4846dc09a

View file

@ -19,7 +19,7 @@
// browse all its subfields
var subfields = whichfield.parentNode.getElementsByTagName('input');
var subfields = whichfield.parentNode.parentNode.getElementsByTagName('input');
var re = /^tag_\d*_code_/;
for(var i=0, len = subfields.length ; i< len ; i++) {