fix #1981 (empty brackets in preview dialog title if no director)

This commit is contained in:
rolux 2014-01-05 16:46:28 +05:30
parent ff13a30639
commit 41a83eca7a

View file

@ -74,7 +74,7 @@ pandora.ui.previewDialog = function() {
: item.posterRatio,
size = getSize(posterRatio),
title = item.title + (
item.director ? ' (' + item.director.join(', ') + ')' : ''
item.director.length ? ' (' + item.director.join(', ') + ')' : ''
) + (
item.year ? ' ' + item.year : ''
);