fix #581 (preview dialog title)

This commit is contained in:
rolux 2012-02-21 20:44:35 +00:00
parent 67bc4475e9
commit 4610811821

View file

@ -422,7 +422,11 @@ pandora.ui.list = function() {
}
}, function(result) {
var item = result.data.items[0],
title = item.title + ' (' + item.director.join(', ') + ') ' + item.year,
title = item.title + (
item.director ? ' (' + item.director.join(', ') + ')' : ''
) + (
item.year ? ' ' + item.year : ''
),
ratio = item.posterRatio,
windowWidth = window.innerWidth * 0.8,
windowHeight = window.innerHeight * 0.8,