Sonarr/UI/AddSeries/Collection.js

22 lines
500 B
JavaScript
Raw Normal View History

2013-06-22 06:24:24 +00:00
'use strict';
2013-06-21 01:43:58 +00:00
define(
[
2013-06-21 05:19:41 +00:00
'app',
2013-06-21 01:43:58 +00:00
'backbone',
'Series/SeriesModel'
], function (App, Backbone, SeriesModel) {
return Backbone.Collection.extend({
url : Constants.ApiRoot + '/series/lookup',
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
});