From 188dc1a6ab2202e775c7b61c5938782346fd7e1e Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 14 Oct 2011 00:13:42 +0000 Subject: [PATCH] fix a regression with the info part of the icon text in grid view, when sorting by director or title --- static/js/pandora/ui/list.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/pandora/ui/list.js b/static/js/pandora/ui/list.js index 742bb6bb3..7c0895927 100644 --- a/static/js/pandora/ui/list.js +++ b/static/js/pandora/ui/list.js @@ -149,11 +149,10 @@ pandora.ui.list = function() { ui.icons == 'posters' ? (ui.showSitePoster ? 'siteposter' : 'poster') : 'icon' ) + size + '.jpg', - format, info, sortKey; + format, info, sortKey = sort[0].key; if (['title', 'director'].indexOf(sortKey) > -1) { info = data['year']; } else { - sortKey = sort[0].key; format = pandora.getSortKeyData(sortKey).format; info = format ? Ox['format' + Ox.toTitleCase(format.type)]