Seperate AddArtist, Artist. Refactor NavSearch, Artist Editor. Other

Misc UI Fixes
This commit is contained in:
Qstick
2017-05-28 01:01:20 -04:00
parent 775f96c865
commit 2baa1da4b6
102 changed files with 4382 additions and 61 deletions
+20
View File
@@ -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);
}
});