mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 01:11:43 +00:00
Moved FC properties out of episode model
This commit is contained in:
parent
17941f5b39
commit
db8912e5b7
2 changed files with 5 additions and 9 deletions
|
@ -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…
Reference in a new issue