Existing series view loads again

This commit is contained in:
Mark McDowall 2013-05-12 21:24:04 -07:00
commit 525963f2a6
6 changed files with 45 additions and 21 deletions

View file

@ -0,0 +1,15 @@
"use strict";
define(['app', 'Series/SeriesModel'], function () {
NzbDrone.AddSeries.Collection = Backbone.Collection.extend({
url : NzbDrone.Constants.ApiRoot + '/series/lookup',
model: NzbDrone.Series.SeriesModel,
parse: function (response) {
_.each(response, function (model) {
model.id = undefined;
});
return response;
}
});
});