summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/js/vncast.js4
-rw-r--r--data/js/vnstaff.js4
-rw-r--r--lib/VNDB/Handler/Staff.pm2
3 files changed, 5 insertions, 5 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 '';
}
diff --git a/lib/VNDB/Handler/Staff.pm b/lib/VNDB/Handler/Staff.pm
index b58759ec..e95a4ed5 100644
--- a/lib/VNDB/Handler/Staff.pm
+++ b/lib/VNDB/Handler/Staff.pm
@@ -388,7 +388,7 @@ sub staffxml {
xml;
tag 'staff', more => $np ? 'yes' : 'no';
for(@$list) {
- tag 'item', id => $_->{id}, aid => $_->{aid}, $_->{name};
+ tag 'item', sid => $_->{id}, id => $_->{aid}, $_->{name};
}
end;
}