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'
|
'size', 'transferprogress'
|
||||||
], id) ? 'right' : 'left',
|
], id) ? 'right' : 'left',
|
||||||
format: function(value) {
|
format: function(value) {
|
||||||
return Ox.encodeHTMLEntities(key.format(value));
|
return Ox.encodeHTMLEntities(
|
||||||
|
(key.format || Ox.identity)(value)
|
||||||
|
);
|
||||||
},
|
},
|
||||||
id: id,
|
id: id,
|
||||||
operator: oml.getSortOperator(id),
|
operator: oml.getSortOperator(id),
|
||||||
|
|
Loading…
Reference in a new issue