mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-11 23:57:11 -07:00
UI Cleanup - Updated Series subtree.
This commit is contained in:
parent
1bf433872a
commit
b69ea349ce
25 changed files with 970 additions and 618 deletions
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue