diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/js/vncast.js | 4 | ||||
-rw-r--r-- | data/js/vnstaff.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/data/js/vncast.js b/data/js/vncast.js index 5b74e209..6e499638 100644 --- a/data/js/vncast.js +++ b/data/js/vncast.js @@ -32,7 +32,7 @@ function vncLoad() { // dropdown search dsInit(byId('cast_input'), '/xml/staff.xml?q=', function(item, tr) { - tr.appendChild(tag('td', { style: 'text-align: right; padding-right: 5px'}, 's'+item.getAttribute('id'))); + tr.appendChild(tag('td', { style: 'text-align: right; padding-right: 5px'}, 's'+item.getAttribute('sid'))); tr.appendChild(tag('td', item.firstChild.nodeValue)); }, vncFormAdd); } @@ -84,7 +84,7 @@ function vncAdd(seiyuu, chr, note) { function vncFormAdd(item) { var chr = byId('cast_chars').value; if (chr) { - var s = { id:item.getAttribute('id'), aid:item.getAttribute('aid'), name:item.firstChild.nodeValue }; + var s = { id:item.getAttribute('sid'), aid:item.getAttribute('id'), name:item.firstChild.nodeValue }; vncAdd(s, chr, ''); } else alert('Select character first please.'); diff --git a/data/js/vnstaff.js b/data/js/vnstaff.js index e4a3b284..0bb97187 100644 --- a/data/js/vnstaff.js +++ b/data/js/vnstaff.js @@ -17,7 +17,7 @@ function vnsLoad() { // dropdown search dsInit(byId('credit_input'), '/xml/staff.xml?q=', function(item, tr) { - tr.appendChild(tag('td', { style: 'text-align: right; padding-right: 5px'}, 's'+item.getAttribute('id'))); + tr.appendChild(tag('td', { style: 'text-align: right; padding-right: 5px'}, 's'+item.getAttribute('sid'))); tr.appendChild(tag('td', item.firstChild.nodeValue)); }, vnsFormAdd); } @@ -94,7 +94,7 @@ function vnsDel() { } function vnsFormAdd(item) { - var s = { id:item.getAttribute('id'), aid:item.getAttribute('aid'), name:item.firstChild.nodeValue }; + var s = { id:item.getAttribute('sid'), aid:item.getAttribute('id'), name:item.firstChild.nodeValue }; vnsAdd(s, 'staff', ''); return ''; } |