check if alternative title has countries

This commit is contained in:
j 2015-05-04 10:55:47 +02:00
parent 80fd7c027e
commit cf10d98d50

View file

@ -348,7 +348,7 @@ pandora.ui.infoView = function(data) {
formatKey('Alternative Title' + (data.alternativeTitles.length == 1 ? '' : 's')) formatKey('Alternative Title' + (data.alternativeTitles.length == 1 ? '' : 's'))
+ data.alternativeTitles.map(function(value) { + data.alternativeTitles.map(function(value) {
return value[0] + ( return value[0] + (
canSeeAllMetadata && Ox.isArray(value[1]) canSeeAllMetadata && Ox.isArray(value[1]) && value[1].length
? ' ' + formatLight('(' + value[1].join(', ') + ')') ? ' ' + formatLight('(' + value[1].join(', ') + ')')
: '' : ''
); );