2013-06-22 09:24:24 +03:00
|
|
|
'use strict';
|
2013-06-25 02:41:59 +03:00
|
|
|
define(
|
|
|
|
[
|
|
|
|
'Cells/NzbDroneCell'
|
|
|
|
], function (NzbDroneCell) {
|
|
|
|
return NzbDroneCell.extend({
|
2013-06-10 08:37:41 +03:00
|
|
|
|
2013-06-25 02:41:59 +03:00
|
|
|
className: 'relative-date-cell',
|
2013-06-09 23:51:32 +03:00
|
|
|
|
2013-06-25 02:41:59 +03:00
|
|
|
render: function () {
|
2013-06-09 23:51:32 +03:00
|
|
|
|
2013-06-25 02:41:59 +03:00
|
|
|
var date = this.model.get(this.column.get('name'));
|
|
|
|
this.$el.html(Date.create(date).relative());
|
2013-06-09 23:51:32 +03:00
|
|
|
|
2013-06-25 02:41:59 +03:00
|
|
|
return this;
|
|
|
|
}
|
|
|
|
});
|
2013-06-09 23:51:32 +03:00
|
|
|
});
|