Recent folder list will scroll when needed

Able to add more than one recent folder without refreshing the page
pull/6/head
Mark McDowall 11 years ago
parent 19906e0350
commit 1ef168370e

@ -39,9 +39,6 @@ define(
SeriesCollection.fetch(); SeriesCollection.fetch();
QualityProfileCollection.fetch(); QualityProfileCollection.fetch();
RootFolderCollection.fetch(); RootFolderCollection.fetch();
this.rootFolderLayout = new RootFolderLayout();
this.rootFolderLayout.on('folderSelected', this._folderSelected, this);
}, },
onShow: function () { onShow: function () {
@ -55,6 +52,8 @@ define(
}, },
_importSeries: function () { _importSeries: function () {
this.rootFolderLayout = new RootFolderLayout();
this.rootFolderLayout.on('folderSelected', this._folderSelected, this);
App.modalRegion.show(this.rootFolderLayout); App.modalRegion.show(this.rootFolderLayout);
}, },

@ -11,7 +11,7 @@
{{#if items}} {{#if items}}
<h4>Recent Folders</h4> <h4>Recent Folders</h4>
{{/if}} {{/if}}
<div id="current-dirs"/> <div id="current-dirs" class="root-folders-list"></div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn" data-dismiss="modal">close</button> <button class="btn" data-dismiss="modal">close</button>

@ -118,5 +118,10 @@ li.add-new:hover {
} }
.root-folders-modal { .root-folders-modal {
overflow: visible; overflow: hidden;
.root-folders-list {
overflow: auto;
max-height: 300px;
}
} }
Loading…
Cancel
Save