1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-28 02:40:01 +00:00
Radarr/UI/AddSeries/Collection.js

21 lines
480 B
JavaScript
Raw Normal View History

'use strict';
2013-06-21 01:43:58 +00:00
define(
[
'backbone',
'Series/SeriesModel'
], function (Backbone, SeriesModel) {
2013-06-21 01:43:58 +00:00
return Backbone.Collection.extend({
url : window.ApiRoot + '/series/lookup',
2013-06-21 01:43:58 +00:00
model: SeriesModel,
2013-05-13 04:24:04 +00:00
2013-06-21 01:43:58 +00:00
parse: function (response) {
2013-06-21 01:43:58 +00:00
_.each(response, function (model) {
model.id = undefined;
});
2013-06-21 01:43:58 +00:00
return response;
}
});
2013-05-13 04:24:04 +00:00
});