fix a regression regarding the info part of the icon text in the movie browser when sorting by title or director
This commit is contained in:
parent
459fe87f7c
commit
8345f12998
2 changed files with 2 additions and 2 deletions
|
@ -61,11 +61,10 @@ pandora.ui.browser = 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)]
|
||||||
|
|
|
@ -193,6 +193,7 @@ pandora.ui.infoView = function(data) {
|
||||||
)
|
)
|
||||||
.appendTo($text);
|
.appendTo($text);
|
||||||
|
|
||||||
|
// fixme: creator seems to be always missing
|
||||||
if (data.creator || data.writer || data.producer || data.cinematographer || data.editor) {
|
if (data.creator || data.writer || data.producer || data.cinematographer || data.editor) {
|
||||||
$div = $('<div>')
|
$div = $('<div>')
|
||||||
.css(css)
|
.css(css)
|
||||||
|
|
Loading…
Reference in a new issue