From d73dc8eb52541ce1290055320a95e88ecd25e873 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 3 Aug 2013 17:30:24 +0000 Subject: [PATCH] no director is empty array, not falsy --- static/js/utils.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index b7ee88202..7f832cc6b 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -824,8 +824,12 @@ pandora.getClipVideos = function(clip, resolution) { if (itemData) { itemTitles[pandora.user.ui.item] = Ox.decodeHTMLEntities( (itemData.title || Ox._('Untitled')) + ( - itemData.director || itemData.year - ? ' (' + (itemData.director || [Ox._('Unknown Director')]).join(', ') + ')' + Ox.len(itemData.director) || itemData.year + ? ' (' + ( + Ox.len(itemData.director) + ? itemData.director + : [Ox._('Unknown Director')] + ).join(', ') + ')' : '' ) + (itemData.year ? ' ' + itemData.year : '') );