diff --git a/static/js/browser.js b/static/js/browser.js index c75d850..afda302 100644 --- a/static/js/browser.js +++ b/static/js/browser.js @@ -17,10 +17,13 @@ oml.ui.browser = function() { width = Math.round(ratio >= 1 ? size : size * ratio), height = Math.round(ratio <= 1 ? size : size / ratio), sortKey = sort[0].key, - info = Ox.getObjectById(oml.config.sortKeys, sortKey).format( - Ox.contains(['title', 'random'], sortKey) - ? (data.author || '') : data[sortKey] - ); + info = Ox.isNull(data[sortKey]) + ? '' + : Ox.contains(['title', 'random'], sortKey) + ? (data.author || []).join(', ') + : Ox.getObjectById( + oml.config.sortKeys, sortKey + ).format(data[sortKey]); size = size || 64; return { extra: ui.showIconInfo ? $('
') diff --git a/static/js/gridView.js b/static/js/gridView.js index c1db5e8..8ed4e0f 100644 --- a/static/js/gridView.js +++ b/static/js/gridView.js @@ -18,10 +18,11 @@ oml.ui.gridView = function() { sortKey = sort[0].key, info = Ox.isNull(data[sortKey]) ? '' - : Ox.getObjectById(oml.config.sortKeys, sortKey).format( - Ox.contains(['title', 'random'], sortKey) - ? (data.author || '') : data[sortKey] - ); + : Ox.contains(['title', 'random'], sortKey) + ? (data.author || []).join(', ') + : Ox.getObjectById( + oml.config.sortKeys, sortKey + ).format(data[sortKey]); size = size || 128; return { extra: ui.showIconInfo ? $('
')