mirror of https://github.com/Radarr/Radarr
14 lines
410 B
JavaScript
14 lines
410 B
JavaScript
var Backbone = require('backbone');
|
|
var SeriesCollection = require('../../Series/SeriesCollection');
|
|
|
|
module.exports = Backbone.Model.extend({
|
|
initialize : function(){
|
|
this.url = function(){
|
|
return this.collection.url + '/' + this.get('id');
|
|
};
|
|
},
|
|
parse : function(model){
|
|
model.series = SeriesCollection.get(model.seriesId);
|
|
return model;
|
|
}
|
|
}); |