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