1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-27 23:06:29 -04:00

rjs -> webpack

This commit is contained in:
Keivan Beigi
2015-02-02 17:18:45 -08:00
parent 344f3d66ef
commit 428a1439e5
399 changed files with 11591 additions and 16139 deletions
+14 -25
View File
@@ -1,27 +1,16 @@
'use strict';
var NzbDroneCell = require('../../Cells/NzbDroneCell');
var SeriesCollection = require('../SeriesCollection');
define(
[
'Cells/NzbDroneCell',
'Series/SeriesCollection'
], function (NzbDroneCell, SeriesCollection) {
return 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;
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;
}
});