1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 20:42:37 +01:00
Radarr/UI/Cells/FileSizeCell.js

20 lines
467 B
JavaScript
Raw Normal View History

2013-06-22 08:24:24 +02:00
'use strict';
define(
[
'backgrid',
'Shared/FormatHelpers'
], function (Backgrid, FormatHelpers) {
return Backgrid.Cell.extend({
className: 'file-size-cell',
render: function () {
var size = this.model.get(this.column.get('name'));
2013-08-04 03:27:12 +02:00
this.$el.html(FormatHelpers.bytes(size));
this.delegateEvents();
return this;
}
});
});