You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sonarr/UI/AddSeries/Collection.js

21 lines
480 B

'use strict';
12 years ago
define(
[
'backbone',
'Series/SeriesModel'
], function (Backbone, SeriesModel) {
12 years ago
return Backbone.Collection.extend({
url : window.ApiRoot + '/series/lookup',
12 years ago
model: SeriesModel,
12 years ago
parse: function (response) {
12 years ago
_.each(response, function (model) {
model.id = undefined;
});
12 years ago
return response;
}
});
});