From 0208ae8347252f8bb28a52eed3d20362cd5641e3 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 21 Aug 2013 21:04:03 -0700 Subject: [PATCH] Fixed LoadingView --- UI/AddSeries/RootFolders/Layout.js | 4 +++- UI/AddSeries/RootFolders/LayoutTemplate.html | 2 +- UI/Episode/Search/Layout.js | 6 +++--- UI/Episode/Summary/EpisodeSummaryLayout.js | 7 +++++-- UI/Release/Layout.js | 6 +++--- UI/Shared/LoadingTemplate.html | 9 ++++++++- UI/Shared/SpinnerTemplate.html | 8 -------- UI/Shared/SpinnerView.js | 12 ------------ 8 files changed, 23 insertions(+), 31 deletions(-) delete mode 100644 UI/Shared/SpinnerTemplate.html delete mode 100644 UI/Shared/SpinnerView.js diff --git a/UI/AddSeries/RootFolders/Layout.js b/UI/AddSeries/RootFolders/Layout.js index b0030f374..89388b2c2 100644 --- a/UI/AddSeries/RootFolders/Layout.js +++ b/UI/AddSeries/RootFolders/Layout.js @@ -6,8 +6,9 @@ define( 'AddSeries/RootFolders/CollectionView', 'AddSeries/RootFolders/Collection', 'AddSeries/RootFolders/Model', + 'Shared/LoadingView', 'Mixins/AutoComplete' - ], function (Marionette, RootFolderCollectionView, RootFolderCollection, RootFolderModel) { + ], function (Marionette, RootFolderCollectionView, RootFolderCollection, RootFolderModel, LoadingView) { return Marionette.Layout.extend({ template: 'AddSeries/RootFolders/LayoutTemplate', @@ -33,6 +34,7 @@ define( onRender: function () { var self = this; + this.currentDirs.show(new LoadingView()); RootFolderCollection.promise.done(function () { self.currentDirs.show(self.rootfolderListView); diff --git a/UI/AddSeries/RootFolders/LayoutTemplate.html b/UI/AddSeries/RootFolders/LayoutTemplate.html index 6b466dc0f..2a5d5f350 100644 --- a/UI/AddSeries/RootFolders/LayoutTemplate.html +++ b/UI/AddSeries/RootFolders/LayoutTemplate.html @@ -11,7 +11,7 @@ {{#if items}}

Recent Folders

{{/if}} -
loading ...
+