fix #581 (preview dialog title)
This commit is contained in:
parent
67bc4475e9
commit
4610811821
1 changed files with 5 additions and 1 deletions
|
@ -422,7 +422,11 @@ pandora.ui.list = function() {
|
||||||
}
|
}
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
var item = result.data.items[0],
|
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,
|
ratio = item.posterRatio,
|
||||||
windowWidth = window.innerWidth * 0.8,
|
windowWidth = window.innerWidth * 0.8,
|
||||||
windowHeight = window.innerHeight * 0.8,
|
windowHeight = window.innerHeight * 0.8,
|
||||||
|
|
Loading…
Reference in a new issue