ItemViewContainer didn't exist sometimes for root folders

Fixed: Error displaying existing root folders in some cases
Closes #1170
pull/4/head
Mark McDowall 9 years ago
parent 59e71a4cd9
commit af220c7f7b

@ -27,10 +27,10 @@ var Layout = Marionette.Layout.extend({
this.rootfolderListView = new RootFolderCollectionView({ collection : RootFolderCollection });
this.listenTo(this.rootfolderListView, 'itemview:folderSelected', this._onFolderSelected);
this.listenTo(RootFolderCollection, 'sync', this._showCurrentDirs);
},
onRender : function() {
onShow : function() {
this.listenTo(RootFolderCollection, 'sync', this._showCurrentDirs);
this.currentDirs.show(new LoadingView());
if (RootFolderCollection.synced) {

Loading…
Cancel
Save