pull/884/head
Louis Vézina 5 years ago
parent c1a0db8025
commit bb0fce1259

@ -159,8 +159,36 @@
},
{"data": "episode"},
{"data": "title"},
{"data": "subtitles[, ]"},
{"data": "missing_subtitles[, ]"},
{"data": "subtitles",
"render": function (data) {
if (data !== 'None') {
var languages = '';
data.forEach(appendFunc);
return languages;
} else {
return null;
}
function appendFunc(value) {
languages = languages + '<span class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="' + value[0].name + '">' + value[0].code2 + '</span> ';
}
}
},
{"data": "missing_subtitles",
"render": function (data) {
if (data !== 'None') {
var languages = '';
data.forEach(appendFunc);
return languages;
} else {
return null;
}
function appendFunc(value) {
languages = languages + '<span class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="' + value.name + '">' + value.code2 + '</span> ';
}
}
},
{"data": "title"},
{"data": "title"}
]

Loading…
Cancel
Save