summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-10-21 16:27:18 +0200
committerYorhel <git@yorhel.nl>2009-10-21 16:27:18 +0200
commit28e027452a548e67e631593481b8396254b8d39c (patch)
treecec734f2b1cb52f78353d6dfbd576ba0fc35f96c /data
parent76154a765f9b69af92495462a5e880d5c2e608ce (diff)
JS: Copy over selection when adding new VN or producer relation
Small but annoying bug...
Diffstat (limited to 'data')
-rw-r--r--data/script.js4
1 files changed, 2 insertions, 2 deletions
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();
});