1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-07-09 01:05:40 +02:00
Files
Sonarr/UI/AddSeries/Collection.js

22 lines
500 B
JavaScript
Raw Normal View History

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