fully working add series

This commit is contained in:
kay.one 2013-06-30 12:57:26 -07:00
parent 57ccc51393
commit 96810c489c
21 changed files with 295 additions and 314 deletions

View file

@ -7,8 +7,9 @@ define(
'AddSeries/Existing/CollectionView',
'AddSeries/AddSeriesView',
'Quality/QualityProfileCollection',
'AddSeries/RootFolders/Collection'
], function (App, Marionette, RootFolderLayout, ExistingSeriesCollectionView, AddSeriesView, qualityProfileCollection, rootFolderCollection) {
'AddSeries/RootFolders/Collection',
'Series/SeriesCollection',
], function (App, Marionette, RootFolderLayout, ExistingSeriesCollectionView, AddSeriesView, qualityProfileCollection, rootFolderCollection, SeriesCollection) {
return Marionette.Layout.extend({
template: 'AddSeries/AddSeriesLayoutTemplate',
@ -21,7 +22,14 @@ define(
'click .x-import': '_importSeries'
},
attributes: {
id: 'add-series-screen'
},
initialize: function () {
SeriesCollection.fetch();
this.rootFolderLayout = new RootFolderLayout();
this.rootFolderLayout.on('folderSelected', this._folderSelected, this);