From 28e027452a548e67e631593481b8396254b8d39c Mon Sep 17 00:00:00 2001 From: Yorhel Date: Wed, 21 Oct 2009 16:27:18 +0200 Subject: JS: Copy over selection when adding new VN or producer relation Small but annoying bug... --- data/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/script.js b/data/script.js index 8ab9b003..78169c1b 100644 --- a/data/script.js +++ b/data/script.js @@ -828,7 +828,7 @@ function vnrFormAdd() { if(byId('relation_tr_'+id)) return alert(mt('_vnedit_rel_double')); - vnrAdd(sel.selectedIndex, id, items[0].firstChild.nodeValue); + vnrAdd(sel.options[sel.selectedIndex].value, id, items[0].firstChild.nodeValue); sel.selectedIndex = 0; vnrSerialize(); }); @@ -1635,7 +1635,7 @@ function prrFormAdd() { if(byId('relation_tr_'+id)) return alert(mt('_pedit_rel_double')); - prrAdd(sel.selectedIndex, id, items[0].firstChild.nodeValue); + prrAdd(sel.options[sel.selectedIndex].value, id, items[0].firstChild.nodeValue); sel.selectedIndex = 0; prrSerialize(); }); -- cgit v1.2.3