geonames are not unique

This commit is contained in:
j 2012-02-03 14:44:11 +00:00
commit 6e876c2b4d
3 changed files with 11 additions and 6 deletions

View file

@ -241,10 +241,11 @@ pandora.ui.infoView = function(data) {
['country', 'year', 'language', 'runtime'].forEach(function(key) {
if (data[key]) {
html.push(
formatKey(key)
+ (key == 'runtime'
? Math.round(data[key] / 60) + ' min'
: formatValue(data[key], key))
formatKey(key) + (
key != 'runtime' ? formatValue(data[key], key)
: data[key] < 60 ? Math.round(data[key]) + ' sec'
: Math.round(data[key] / 60) + ' min'
)
)
}
});