always display an original title

This commit is contained in:
rlx 2018-09-12 20:08:41 +02:00
parent 9b32107e05
commit 68cc64728b

View file

@ -584,7 +584,9 @@ pandora.ui.infoView = function(data) {
function formatValue(key, value) { function formatValue(key, value) {
var ret; var ret;
if (key == 'year') { if (key == 'originalTitle') {
ret = value || data.title;
} else if (key == 'year') {
ret = formatLink(value, 'year'); ret = formatLink(value, 'year');
} else if (['releasedate', 'dateofcensorcertificate'].indexOf(key) > -1) { } else if (['releasedate', 'dateofcensorcertificate'].indexOf(key) > -1) {
ret = value ? Ox.formatDate(value, ret = value ? Ox.formatDate(value,