Moved FC properties out of episode model

pull/3113/head
Mark McDowall 12 years ago
parent 17941f5b39
commit db8912e5b7

@ -68,9 +68,14 @@ define(['app', 'Calendar/CalendarItemView'], function () {
_.each(calendarCollection.models, function(element) {
var episodeTitle = element.get('title');
var seriesTitle = element.get('series').title;
var start = element.get('airDate');
var end = element.get('endTime');
element.set('title', seriesTitle);
element.set('episodeTitle', episodeTitle);
element.set('start', start);
element.set('end', end);
element.set('allDay', false);
});
callback(calendarCollection.toJSON());

@ -9,9 +9,6 @@ define(['app'], function () {
paddedEpisodeNumber: function () {
return this.get('episodeNumber');
},
allDay : function () {
return false;
},
day : function () {
return Date.create(this.get('airDate')).format('{dd}');
},
@ -27,12 +24,6 @@ define(['app'], function () {
return start.format('{h}.{mm}{tt}');
},
start : function () {
return this.get('airDate');
},
end : function () {
return this.get('endTime');
},
statusLevel : function () {
var status = this.get('status');
var currentTime = Date.create();

Loading…
Cancel
Save