move original title

This commit is contained in:
rlx 2018-09-12 20:01:56 +02:00
parent a55a95d3b4
commit b9f28003c5

View file

@ -211,7 +211,6 @@ pandora.ui.infoView = function(data) {
$links, $links,
$statistics = $('<div>') $statistics = $('<div>')
.css({ .css({
position: 'absolute', position: 'absolute',
@ -300,7 +299,7 @@ pandora.ui.infoView = function(data) {
// Groups ------------------------------------------------------------------ // Groups ------------------------------------------------------------------
renderGroup(['alternativeTitles']); renderGroup(['originalTitle', 'alternativeTitles']);
renderGroup(['type', 'framework', 'style', 'version']); renderGroup(['type', 'framework', 'style', 'version']);
@ -580,10 +579,7 @@ pandora.ui.infoView = function(data) {
+ formatLight(match[2]) + formatLight(match[2])
+ title.substr(match[0].length); + title.substr(match[0].length);
} }
return title + ( return title;
data.originalTitle && data.originalTitle != title && data.originalTitle != 'untitled'
? ' ' + formatLight('(' + data.originalTitle + ')') : ''
);
} }
function formatValue(key, value) { function formatValue(key, value) {