mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
Seperate AddArtist, Artist. Refactor NavSearch, Artist Editor. Other
Misc UI Fixes
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
var Backbone = require('backbone');
|
||||
|
||||
module.exports = Backbone.Model.extend({
|
||||
defaults : {
|
||||
seasonNumber : 0,
|
||||
status : 0
|
||||
},
|
||||
|
||||
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()];
|
||||
}
|
||||
return Backbone.sync(method, model, options);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user