Bug 28812: Improve robustness of selector
Use the same fix as bug 28828. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
70ea4115cf
commit
a8021117ca
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ function openAuth(tagsubfieldid,authtype,source) {
|
|||
var mainmainstring=element.value;
|
||||
var mainstring = new Array();
|
||||
|
||||
var inputs = element.parentNode.parentNode.parentNode.getElementsByTagName("input");
|
||||
var inputs = element.closest('ul').getElementsByTagName('input');
|
||||
for (var myindex =0; myindex<inputs.length;myindex++){
|
||||
if (inputs[myindex].name && inputs[myindex].name.match(tagsubfield)){
|
||||
var subfieldcode=getSubfieldCode(inputs[myindex].name);
|
||||
|
|
Loading…
Reference in a new issue