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

View file

@ -1,37 +1,29 @@
'use strict';
define(
[
'backbone',
'underscore'
], function (Backbone, _) {
return Backbone.Model.extend({
var Backbone = require('backbone');
var _ = require('underscore');
urlRoot: window.NzbDrone.ApiRoot + '/series',
defaults: {
episodeFileCount: 0,
episodeCount : 0,
isExisting : false,
status : 0
},
setSeasonMonitored: function (seasonNumber) {
_.each(this.get('seasons'), function (season) {
if (season.seasonNumber === seasonNumber) {
season.monitored = !season.monitored;
}
});
},
setSeasonPass: function (seasonNumber) {
_.each(this.get('seasons'), function (season) {
if (season.seasonNumber >= seasonNumber) {
season.monitored = true;
}
else {
season.monitored = false;
}
});
module.exports = Backbone.Model.extend({
urlRoot : window.NzbDrone.ApiRoot + '/series',
defaults : {
episodeFileCount : 0,
episodeCount : 0,
isExisting : false,
status : 0
},
setSeasonMonitored : function(seasonNumber){
_.each(this.get('seasons'), function(season){
if(season.seasonNumber === seasonNumber) {
season.monitored = !season.monitored;
}
});
});
},
setSeasonPass : function(seasonNumber){
_.each(this.get('seasons'), function(season){
if(season.seasonNumber >= seasonNumber) {
season.monitored = true;
}
else {
season.monitored = false;
}
});
}
});