finished add series,

still has a few rough edges but should be functional.
This commit is contained in:
Keivan Beigi 2013-05-27 19:05:34 -07:00
parent ea929974f3
commit 465dc725c8
11 changed files with 74 additions and 59 deletions

View file

@ -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);
}
});
});