Episode count on posters and coloured bars

This commit is contained in:
Mark McDowall 2013-07-25 20:25:56 -07:00
commit 9ba0623987
7 changed files with 78 additions and 17 deletions

26
UI/Cells/AirDateCell.js Normal file
View file

@ -0,0 +1,26 @@
'use strict';
define(
[
'backgrid',
'moment',
'Shared/FormatHelpers'
], function (Backgrid, Moment, FormatHelpers) {
return Backgrid.Cell.extend({
className: 'air-date-cell',
render: function () {
this.$el.empty();
var date = this.model.get(this.column.get('name'));
if (date) {
this.$el.html(FormatHelpers.DateHelper(date));
this.$el.attr('title', Moment(date).format('LLLL'));
}
return this;
}
});
});