summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
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();
});