Dont show NaN pages, fixes #148

This commit is contained in:
j 2016-01-15 13:11:20 +05:30
parent 4528ab60c4
commit 0cd6032816

View file

@ -16,7 +16,7 @@ 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.isNull(data[sortKey]) info = Ox.isNull(data[sortKey]) || Ox.isUndefined(data[sortKey])
? '' ? ''
: Ox.contains(['title', 'random'], sortKey) : Ox.contains(['title', 'random'], sortKey)
? (data.author || []).join(', ') ? (data.author || []).join(', ')