From 8345f1299897bcc93c7afb37e79c29e4c89b487b Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 14 Oct 2011 22:18:51 +0000 Subject: [PATCH] fix a regression regarding the info part of the icon text in the movie browser when sorting by title or director --- static/js/pandora/ui/browser.js | 3 +-- static/js/pandora/ui/infoView.js | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/ui/browser.js b/static/js/pandora/ui/browser.js index 11d9592d..a8ffda8c 100644 --- a/static/js/pandora/ui/browser.js +++ b/static/js/pandora/ui/browser.js @@ -61,11 +61,10 @@ pandora.ui.browser = 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)] diff --git a/static/js/pandora/ui/infoView.js b/static/js/pandora/ui/infoView.js index 38709961..f4401cca 100644 --- a/static/js/pandora/ui/infoView.js +++ b/static/js/pandora/ui/infoView.js @@ -193,6 +193,7 @@ pandora.ui.infoView = function(data) { ) .appendTo($text); + // fixme: creator seems to be always missing if (data.creator || data.writer || data.producer || data.cinematographer || data.editor) { $div = $('
') .css(css)