mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-31 04:00:18 -07:00
fully working add series
This commit is contained in:
parent
57ccc51393
commit
96810c489c
21 changed files with 295 additions and 314 deletions
|
@ -1,4 +1,4 @@
|
|||
'use strict';
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
|
@ -8,10 +8,21 @@ define(
|
|||
url : window.ApiRoot + '/series/lookup',
|
||||
model: SeriesModel,
|
||||
|
||||
initialize: function (options) {
|
||||
this.unmappedFolderModel = options.unmappedFolderModel;
|
||||
},
|
||||
|
||||
|
||||
parse: function (response) {
|
||||
|
||||
var self = this;
|
||||
|
||||
_.each(response, function (model) {
|
||||
model.id = undefined;
|
||||
|
||||
if (self.unmappedFolderModel) {
|
||||
model.path = self.unmappedFolderModel.get('folder').path;
|
||||
}
|
||||
});
|
||||
|
||||
return response;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue