show date instead of undefined in results grid, fixes #2727
This commit is contained in:
parent
772d1c7ea2
commit
ea52722d9f
2 changed files with 4 additions and 2 deletions
|
@ -548,7 +548,7 @@
|
||||||
"itemTitleKeys" list of itemKeys used to compose the title
|
"itemTitleKeys" list of itemKeys used to compose the title
|
||||||
via pandora.getItemTitle
|
via pandora.getItemTitle
|
||||||
*/
|
*/
|
||||||
"itemTitleKeys": ["title", "director"],
|
"itemTitleKeys": ["title", "director", "date"],
|
||||||
/*
|
/*
|
||||||
"itemViews" is an ordered list of available item views.
|
"itemViews" is an ordered list of available item views.
|
||||||
Implemented views are "info", "documents", "player", "editor",
|
Implemented views are "info", "documents", "player", "editor",
|
||||||
|
|
|
@ -131,7 +131,9 @@ pandora.ui.list = function() {
|
||||||
) + size + '.jpg?' + data.modified),
|
) + size + '.jpg?' + data.modified),
|
||||||
format, info, sortKey = sort[0].key;
|
format, info, sortKey = sort[0].key;
|
||||||
if (['title', 'director', 'random'].indexOf(sortKey) > -1) {
|
if (['title', 'director', 'random'].indexOf(sortKey) > -1) {
|
||||||
info = data['year'];
|
info = data['year'] || data['date'] || '';
|
||||||
|
window.test = data;
|
||||||
|
console.log('SORT', sortKey, info, data);
|
||||||
} else {
|
} else {
|
||||||
format = pandora.getSortKeyData(sortKey).format;
|
format = pandora.getSortKeyData(sortKey).format;
|
||||||
if (Ox.isUndefined(data[sortKey]) || Ox.isNull(data[sortKey])) {
|
if (Ox.isUndefined(data[sortKey]) || Ox.isNull(data[sortKey])) {
|
||||||
|
|
Loading…
Reference in a new issue