mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
finished add series,
still has a few rough edges but should be functional.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user