render list even if director is missing

This commit is contained in:
j 2013-11-01 11:51:14 +01:00
parent c2ae35cce0
commit 80055319e7
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ pandora.ui.browser = function() {
height: ratio <= 1 ? size : size / ratio,
id: data.id,
info: info,
title: data.title + (data.director.length ? ' (' + data.director.join(', ') + ')' : ''),
title: data.title + (data.director && data.director.length ? ' (' + data.director.join(', ') + ')' : ''),
url: url,
width: ratio >= 1 ? size : size * ratio
};

View file

@ -155,7 +155,7 @@ pandora.ui.list = function() {
height: Math.round(ratio <= 1 ? size : size / ratio),
id: data.id,
info: info,
title: data.title + (data.director.length ? ' (' + data.director.join(', ') + ')' : ''),
title: data.title + (data.director && data.director.length ? ' (' + data.director.join(', ') + ')' : ''),
url: url,
width: Math.round(ratio >= 1 ? size : size * ratio)
};