You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
651 B
19 lines
651 B
var NzbDroneCell = require('../../Cells/NzbDroneCell');
|
|
var SeriesCollection = require('../SeriesCollection');
|
|
|
|
module.exports = NzbDroneCell.extend({
|
|
className : 'episode-warning-cell',
|
|
|
|
render : function() {
|
|
this.$el.empty();
|
|
|
|
if (SeriesCollection.get(this.model.get('seriesId')).get('seriesType') === 'anime') {
|
|
if (this.model.get('seasonNumber') > 0 && !this.model.has('absoluteEpisodeNumber')) {
|
|
this.$el.html('<i class="icon-nd-form-warning" title="Episode does not have an absolute episode number"></i>');
|
|
}
|
|
}
|
|
|
|
this.delegateEvents();
|
|
return this;
|
|
}
|
|
}); |