key.format may be undefined
This commit is contained in:
parent
2f6a9ac82f
commit
36be2bb3b2
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,9 @@ oml.ui.transfersPanel = function() {
|
|||
'size', 'transferprogress'
|
||||
], id) ? 'right' : 'left',
|
||||
format: function(value) {
|
||||
return Ox.encodeHTMLEntities(key.format(value));
|
||||
return Ox.encodeHTMLEntities(
|
||||
(key.format || Ox.identity)(value)
|
||||
);
|
||||
},
|
||||
id: id,
|
||||
operator: oml.getSortOperator(id),
|
||||
|
|
Loading…
Reference in a new issue