mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
UI Cleanup - Updated Series subtree.
This commit is contained in:
@@ -2,26 +2,28 @@ var Backbone = require('backbone');
|
||||
var _ = require('underscore');
|
||||
|
||||
module.exports = Backbone.Model.extend({
|
||||
urlRoot : window.NzbDrone.ApiRoot + '/series',
|
||||
defaults : {
|
||||
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) {
|
||||
|
||||
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) {
|
||||
|
||||
setSeasonPass : function(seasonNumber) {
|
||||
_.each(this.get('seasons'), function(season) {
|
||||
if (season.seasonNumber >= seasonNumber) {
|
||||
season.monitored = true;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
season.monitored = false;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user