Almost finished linking frontend to backend. A few issues with DB mapping to work out.

This commit is contained in:
Joseph Milazzo
2017-04-30 16:54:01 -05:00
parent 5b0f11b19a
commit fa52eabb79
35 changed files with 996 additions and 256 deletions
+2 -2
View File
@@ -11,9 +11,9 @@ module.exports = Backbone.Model.extend({
status : 0
},
setAlbumsMonitored : function(seasonNumber) {
setAlbumsMonitored : function(albumName) {
_.each(this.get('albums'), function(album) {
if (season.seasonNumber === seasonNumber) {
if (season.albumName === albumName) {
album.monitored = !album.monitored;
}
});