mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-23 22:45:06 -04:00
UI Cleanup - Updated AddSeries subtree.
This commit is contained in:
@@ -5,14 +5,18 @@ var _ = require('underscore');
|
||||
module.exports = Backbone.Collection.extend({
|
||||
url : window.NzbDrone.ApiRoot + '/series/lookup',
|
||||
model : SeriesModel,
|
||||
parse : function(response){
|
||||
|
||||
parse : function(response) {
|
||||
var self = this;
|
||||
_.each(response, function(model){
|
||||
|
||||
_.each(response, function(model) {
|
||||
model.id = undefined;
|
||||
if(self.unmappedFolderModel) {
|
||||
|
||||
if (self.unmappedFolderModel) {
|
||||
model.path = self.unmappedFolderModel.get('folder').path;
|
||||
}
|
||||
});
|
||||
|
||||
return response;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user