mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-24 22:55:21 -04:00
1225bbe8dc
New: Renamed history to activity New: Queue is default tab of activity
22 lines
579 B
JavaScript
22 lines
579 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'backbone',
|
|
'Series/SeriesCollection'
|
|
], function (Backbone, SeriesCollection) {
|
|
return Backbone.Model.extend({
|
|
|
|
//Hack to deal with Backbone 1.0's bug
|
|
initialize: function () {
|
|
this.url = function () {
|
|
return this.collection.url + '/' + this.get('id');
|
|
};
|
|
},
|
|
|
|
parse: function (model) {
|
|
model.series = SeriesCollection.get(model.seriesId);
|
|
return model;
|
|
}
|
|
});
|
|
});
|