fix a regression with the info part of the icon text in grid view, when sorting by director or title

This commit is contained in:
rolux 2011-10-14 00:13:42 +00:00
parent c84c5371fa
commit 188dc1a6ab

View file

@ -149,11 +149,10 @@ pandora.ui.list = function() {
ui.icons == 'posters' ui.icons == 'posters'
? (ui.showSitePoster ? 'siteposter' : 'poster') : 'icon' ? (ui.showSitePoster ? 'siteposter' : 'poster') : 'icon'
) + size + '.jpg', ) + size + '.jpg',
format, info, sortKey; format, info, sortKey = sort[0].key;
if (['title', 'director'].indexOf(sortKey) > -1) { if (['title', 'director'].indexOf(sortKey) > -1) {
info = data['year']; info = data['year'];
} else { } else {
sortKey = sort[0].key;
format = pandora.getSortKeyData(sortKey).format; format = pandora.getSortKeyData(sortKey).format;
info = format info = format
? Ox['format' + Ox.toTitleCase(format.type)] ? Ox['format' + Ox.toTitleCase(format.type)]