dont format null values, fixes #116
This commit is contained in:
parent
9253e65e79
commit
9a3c457d6a
1 changed files with 5 additions and 3 deletions
|
@ -16,9 +16,11 @@ oml.ui.gridView = function() {
|
||||||
width = Math.round(ratio >= 1 ? size : size * ratio),
|
width = Math.round(ratio >= 1 ? size : size * ratio),
|
||||||
height = Math.round(ratio <= 1 ? size : size / ratio),
|
height = Math.round(ratio <= 1 ? size : size / ratio),
|
||||||
sortKey = sort[0].key,
|
sortKey = sort[0].key,
|
||||||
info = Ox.getObjectById(oml.config.sortKeys, sortKey).format(
|
info = Ox.isNull(data[sortKey])
|
||||||
Ox.contains(['title', 'random'], sortKey)
|
? ''
|
||||||
? (data.author || '') : data[sortKey]
|
: Ox.getObjectById(oml.config.sortKeys, sortKey).format(
|
||||||
|
Ox.contains(['title', 'random'], sortKey)
|
||||||
|
? (data.author || '') : data[sortKey]
|
||||||
);
|
);
|
||||||
size = size || 128;
|
size = size || 128;
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue