From 1ef168370e08251c95c35e446efb652c6ba67de6 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 4 Aug 2013 10:52:21 -0700 Subject: [PATCH] Recent folder list will scroll when needed Able to add more than one recent folder without refreshing the page --- UI/AddSeries/AddSeriesLayout.js | 5 ++--- UI/AddSeries/RootFolders/LayoutTemplate.html | 2 +- UI/AddSeries/addSeries.less | 7 ++++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/UI/AddSeries/AddSeriesLayout.js b/UI/AddSeries/AddSeriesLayout.js index 0cb7abd14..e5a97edc7 100644 --- a/UI/AddSeries/AddSeriesLayout.js +++ b/UI/AddSeries/AddSeriesLayout.js @@ -39,9 +39,6 @@ define( SeriesCollection.fetch(); QualityProfileCollection.fetch(); RootFolderCollection.fetch(); - - this.rootFolderLayout = new RootFolderLayout(); - this.rootFolderLayout.on('folderSelected', this._folderSelected, this); }, onShow: function () { @@ -55,6 +52,8 @@ define( }, _importSeries: function () { + this.rootFolderLayout = new RootFolderLayout(); + this.rootFolderLayout.on('folderSelected', this._folderSelected, this); App.modalRegion.show(this.rootFolderLayout); }, diff --git a/UI/AddSeries/RootFolders/LayoutTemplate.html b/UI/AddSeries/RootFolders/LayoutTemplate.html index e91145cef..2a5d5f350 100644 --- a/UI/AddSeries/RootFolders/LayoutTemplate.html +++ b/UI/AddSeries/RootFolders/LayoutTemplate.html @@ -11,7 +11,7 @@ {{#if items}}

Recent Folders

{{/if}} -
+