From 96810c489c235911ee4d5980506e469c027c67ab Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 30 Jun 2013 12:57:26 -0700 Subject: [PATCH] fully working add series --- UI/.idea/NzbDrone.UI.iml | 1 + UI/.idea/jsLibraryMappings.xml | 6 +- .../libraries/backbone_backgrid_filter_js.xml | 67 ++++++++ UI/.idea/libraries/libraries.xml | 12 +- UI/AddSeries/AddSeriesLayout.js | 12 +- UI/AddSeries/AddSeriesTemplate.html | 16 +- UI/AddSeries/AddSeriesView.js | 62 +++++-- UI/AddSeries/Collection.js | 13 +- UI/AddSeries/Existing/CollectionView.js | 8 +- UI/AddSeries/Existing/CompositeView.js | 104 ------------ .../UnmappedFolderCompositeViewTemplate.html | 23 --- UI/AddSeries/RootFolders/LayoutTemplate.html | 2 +- UI/AddSeries/SearchResultCollectionView.js | 24 +-- UI/AddSeries/SearchResultTemplate.html | 14 +- UI/AddSeries/SearchResultView.js | 41 ++--- UI/AddSeries/addSeries.less | 153 +++++++++--------- UI/AddSeries/addSeriesLayoutTemplate.html | 8 +- UI/Handlebars/debug.js | 19 +-- UI/Series/Delete/DeleteSeriesTemplate.html | 3 +- UI/Series/SeriesCollection.js | 7 +- UI/Shared/NotFoundView.js | 2 +- 21 files changed, 289 insertions(+), 308 deletions(-) create mode 100644 UI/.idea/libraries/backbone_backgrid_filter_js.xml delete mode 100644 UI/AddSeries/Existing/CompositeView.js delete mode 100644 UI/AddSeries/Existing/UnmappedFolderCompositeViewTemplate.html diff --git a/UI/.idea/NzbDrone.UI.iml b/UI/.idea/NzbDrone.UI.iml index 9ffbb36a1..2184ad470 100644 --- a/UI/.idea/NzbDrone.UI.iml +++ b/UI/.idea/NzbDrone.UI.iml @@ -5,6 +5,7 @@ + diff --git a/UI/.idea/jsLibraryMappings.xml b/UI/.idea/jsLibraryMappings.xml index f6e673adc..03911505b 100644 --- a/UI/.idea/jsLibraryMappings.xml +++ b/UI/.idea/jsLibraryMappings.xml @@ -1,3 +1,7 @@ - + + + + + diff --git a/UI/.idea/libraries/backbone_backgrid_filter_js.xml b/UI/.idea/libraries/backbone_backgrid_filter_js.xml new file mode 100644 index 000000000..f7bf089af --- /dev/null +++ b/UI/.idea/libraries/backbone_backgrid_filter_js.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/UI/.idea/libraries/libraries.xml b/UI/.idea/libraries/libraries.xml index ddc15483e..621295489 100644 --- a/UI/.idea/libraries/libraries.xml +++ b/UI/.idea/libraries/libraries.xml @@ -7,16 +7,12 @@ - - - - @@ -26,21 +22,21 @@ + + + + - - - - diff --git a/UI/AddSeries/AddSeriesLayout.js b/UI/AddSeries/AddSeriesLayout.js index a15bec513..656fe814b 100644 --- a/UI/AddSeries/AddSeriesLayout.js +++ b/UI/AddSeries/AddSeriesLayout.js @@ -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); diff --git a/UI/AddSeries/AddSeriesTemplate.html b/UI/AddSeries/AddSeriesTemplate.html index fabcb7b98..51bd1ac32 100644 --- a/UI/AddSeries/AddSeriesTemplate.html +++ b/UI/AddSeries/AddSeriesTemplate.html @@ -1,5 +1,12 @@ -
-