UI Cleanup - Updated Series subtree.

This commit is contained in:
Taloth Saldono
2015-02-13 23:09:36 +01:00
parent 1bf433872a
commit b69ea349ce
25 changed files with 970 additions and 618 deletions
+8 -4
View File
@@ -1,13 +1,17 @@
var Backbone = require('backbone');
module.exports = Backbone.Model.extend({
defaults : {
defaults : {
seasonNumber : 0,
status : 0
},
methodUrls : {"update" : window.NzbDrone.ApiRoot + '/episode'},
sync : function(method, model, options){
if(model.methodUrls && model.methodUrls[method.toLowerCase()]) {
methodUrls : {
'update' : window.NzbDrone.ApiRoot + '/episode'
},
sync : function(method, model, options) {
if (model.methodUrls && model.methodUrls[method.toLowerCase()]) {
options = options || {};
options.url = model.methodUrls[method.toLowerCase()];
}