summaryrefslogtreecommitdiff
path: root/data/js
diff options
context:
space:
mode:
authoralto <alto@vndb.org>2018-10-28 15:59:11 +0000
committeralto <alto@vndb.org>2018-10-28 15:59:11 +0000
commitc26cf6eded734cc79c6dfdfd8ed2a81aabe9fe0b (patch)
tree58da0ef51fd78cd5ec3ef36d7271097cf6904289 /data/js
parent29526b2b8342cf808864f84fc8672a9d0c486ae0 (diff)
Fix titles with commas getting truncated in VN relation table
Diffstat (limited to 'data/js')
-rw-r--r--data/js/vnrel.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/js/vnrel.js b/data/js/vnrel.js
index bac57595..2ccb91bb 100644
--- a/data/js/vnrel.js
+++ b/data/js/vnrel.js
@@ -2,7 +2,9 @@ function vnrLoad() {
// read the current relations
var rels = byId('vnrelations').value.split('|||');
for(var i=0; i<rels.length && rels[0].length>1; i++) {
- var rel = rels[i].split(',', 4);
+ var rel = rels[i].split(',');
+ // fix for titles containing commas
+ rel[3] = rel.splice(3).join();
vnrAdd(rel[0], rel[1], rel[2]==1?true:false, rel[3]);
}
vnrEmpty();