mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
finished add series,
still has a few rough edges but should be functional.
This commit is contained in:
parent
ea929974f3
commit
465dc725c8
11 changed files with 74 additions and 59 deletions
|
@ -19,20 +19,26 @@ define([
|
|||
'click .x-import': '_importSeries'
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
initialize: function () {
|
||||
this.rootFolderLayout = new NzbDrone.AddSeries.RootFolders.Layout();
|
||||
this.rootFolderLayout.on('folderSelected', this._folderSelected, this);
|
||||
|
||||
/* rootFolderCollection.fetch({success: function () {
|
||||
self.importExisting.show(new NzbDrone.AddSeries.Existing.RootDirListView({model: rootFolderCollection.at(0)}));
|
||||
}});*/
|
||||
},
|
||||
|
||||
_folderSelected: function (options) {
|
||||
NzbDrone.modalRegion.closeModal();
|
||||
this.workspace.show(new NzbDrone.AddSeries.Existing.ListView({model: options.model}));
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
qualityProfileCollection.fetch();
|
||||
rootFolderCollection.fetch();
|
||||
|
||||
this.workspace.show(new NzbDrone.AddSeries.AddSeriesView());
|
||||
},
|
||||
|
||||
|
||||
_importSeries: function () {
|
||||
NzbDrone.modalRegion.show(new NzbDrone.AddSeries.RootFolders.Layout());
|
||||
NzbDrone.modalRegion.show(this.rootFolderLayout);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue