mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-29 11:05:44 +00:00
21 lines
458 B
JavaScript
21 lines
458 B
JavaScript
|
'use strict';
|
||
|
define(
|
||
|
[
|
||
|
'Cells/NzbDroneCell',
|
||
|
'moment'
|
||
|
], function (NzbDroneCell, Moment) {
|
||
|
return NzbDroneCell.extend({
|
||
|
|
||
|
className: 'log-time-cell',
|
||
|
|
||
|
render: function () {
|
||
|
|
||
|
var date = Moment(this._getValue());
|
||
|
this.$el.html(date.format('LT'));
|
||
|
this.$el.attr('title', date.format('LLLL'));
|
||
|
|
||
|
return this;
|
||
|
}
|
||
|
});
|
||
|
});
|