1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-21 01:49:57 +02:00
Sonarr/src/UI/Series/EpisodeModel.js

26 lines
695 B
JavaScript
Raw Normal View History

2013-06-22 09:24:24 +03:00
'use strict';
define(
[
'backbone'
], function (Backbone) {
return Backbone.Model.extend({
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()];
}
return Backbone.sync(method, model, options);
}
});
2013-03-02 22:13:23 +03:00
});