fix #1554 ('NaN' on 0xDB item info page)

This commit is contained in:
rolux 2013-05-31 19:22:27 +02:00
parent d3e38fceec
commit 25f9243089

View file

@ -262,7 +262,7 @@ pandora.ui.infoView = function(data) {
data.alternativeTitles && $('<div>') data.alternativeTitles && $('<div>')
.css(css) .css(css)
.html( .html(
formatKey(Ox.formatCount(data.alternativeTitles, 'Alternative Title')) 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])