1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-23 00:03:05 +00:00

Series is already available in model.

This commit is contained in:
Taloth Saldono 2015-07-07 22:51:44 +02:00
parent 30ab5bc17f
commit dbb3eb0e54

View file

@ -6,7 +6,6 @@ var CalendarCollection = require('./CalendarCollection');
var UiSettings = require('../Shared/UiSettingsModel');
var QueueCollection = require('../Activity/Queue/QueueCollection');
var Config = require('../Config');
var SeriesCollection = require('../Series/SeriesCollection');
require('../Mixins/backbone.signalr.mixin');
require('fullcalendar');
@ -96,7 +95,7 @@ module.exports = Marionette.ItemView.extend({
}
}
else if (SeriesCollection.get(event.model.get('seriesId')).get('seriesType') === 'anime' && event.model.get('seasonNumber') > 0 && !event.model.has('absoluteEpisodeNumber')) {
else if (event.model.get('series').seriesType === 'anime' && event.model.get('seasonNumber') > 0 && !event.model.has('absoluteEpisodeNumber')) {
this._addStatusIcon(element, 'icon-sonarr-form-warning', 'Episode does not have an absolute episode number');
}
},