summaryrefslogtreecommitdiff
path: root/data/js
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-10-31 09:47:15 +0100
committerYorhel <git@yorhel.nl>2018-10-31 09:47:17 +0100
commit08a13ed84b13d3d5e9f90cceac4aa37fb484c373 (patch)
tree77d9ba34a17aff23b832ff2df9356e895807c98e /data/js
parent128df7bfcdc0e2305acec6de2dabf849afa893bd (diff)
VNEdit: Remove "import cast" functionality
https://vndb.org/t950.521
Diffstat (limited to 'data/js')
-rw-r--r--data/js/vncast.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/data/js/vncast.js b/data/js/vncast.js
index 4be98314..20d7fb39 100644
--- a/data/js/vncast.js
+++ b/data/js/vncast.js
@@ -1,5 +1,3 @@
-var vncImportData = [];
-
function vncLoad() {
var cast = jsonParse(byId('seiyuu').value) || [];
var copt = byId('cast_chars').options;
@@ -20,14 +18,6 @@ function vncLoad() {
}
vncEmpty();
- var cast_import = byId('cast_import');
- if(cast_import) {
- vncImportData = jsonParse(getText(byId('castimpdata')||{})) || [];
- if(vncImportData.length)
- byName(cast_import, 'a')[0].onclick = vncImport;
- else
- cast_import.style.display = 'none';
- }
onSubmit(byName(byId('maincontent'), 'form')[0], vncSerialize);
// dropdown search
@@ -38,31 +28,6 @@ function vncLoad() {
}, vncFormAdd);
}
-function vncImport() {
- if (!vncImportData.length)
- return false;
- var c = {};
- for (var i = 0; i < vncImportData.length; i++) {
- var s = vncImportData[i];
- c[s.cid] = s;
- }
- // exclude already credited cast from import list
- var l = byName(byId('cast_tbl'), 'tr');
- for (var i = 0; i < l.length; i++) {
- if(l[i].id == 'cast_tr_none')
- continue;
- var role = byName(byClass(l[i], 'tc_char')[0], 'select')[0].value;
- if (role in c)
- delete c[role];
- }
- for (var cid in c) {
- if (!c.hasOwnProperty(cid))
- continue;
- vncAdd({ id:c[cid].sid, aid:c[cid].aid, name:c[cid].name }, cid, '');
- }
- return false;
-}
-
function vncAdd(seiyuu, chr, note) {
var tbl = byId('cast_tbl');