sugar kills (removed sugar.js)

Relative dates for next airing on posters and list (series)
History time shows real time on tooltip
This commit is contained in:
Mark McDowall 2013-07-16 23:23:44 -07:00
parent 641e01376b
commit 207d9c256d
21 changed files with 296 additions and 9100 deletions

View file

@ -2,16 +2,17 @@
define(
[
'backbone',
'moment',
'Series/SeriesModel'
], function (Backbone, SeriesModel) {
], function (Backbone, Moment, SeriesModel) {
return Backbone.Model.extend({
initialize: function () {
if (this.has('series')) {
var start = Date.create(this.get('airDate'));
var start = Moment(this.get('airDate'));
var runtime = this.get('series').get('runtime');
this.set('end', start.addMinutes(runtime));
this.set('end', start.add('minutes', runtime));
}
},