Fixed: Set episode's monitored status from missing and calendar

This commit is contained in:
Mark McDowall 2014-01-29 22:08:13 -08:00
parent cc66077943
commit 28aee91d3f
1 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,18 @@ define(
defaults: {
seasonNumber: 0,
status : 0
},
methodUrls: {
'update': window.NzbDrone.ApiRoot + '/episodes'
},
sync: function(method, model, options) {
if (model.methodUrls && model.methodUrls[method.toLowerCase()]) {
options = options || {};
options.url = model.methodUrls[method.toLowerCase()];
}
Backbone.sync(method, model, options);
}
});
});