From 41a83eca7a2bab9b4c8e5ce7554eb07aab1ee3b1 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 5 Jan 2014 16:46:28 +0530 Subject: [PATCH] fix #1981 (empty brackets in preview dialog title if no director) --- static/js/previewDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/previewDialog.js b/static/js/previewDialog.js index 1762af10b..7dcd8e6df 100644 --- a/static/js/previewDialog.js +++ b/static/js/previewDialog.js @@ -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 : '' );