Seasons are now subdocuments of series

This commit is contained in:
Mark McDowall 2013-09-09 22:22:38 -07:00
commit 33986a9185
40 changed files with 256 additions and 633 deletions

View file

@ -14,6 +14,25 @@ define(
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;
}
});
}
});
});