diff options
Diffstat (limited to 'apps/files_trashbin/js/app.js')
-rw-r--r-- | apps/files_trashbin/js/app.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files_trashbin/js/app.js b/apps/files_trashbin/js/app.js index 9ab78e7cbb3..aa499ae1791 100644 --- a/apps/files_trashbin/js/app.js +++ b/apps/files_trashbin/js/app.js @@ -17,7 +17,11 @@ OCA.Trashbin.App = { return; } this._initialized = true; - this.fileList = new OCA.Trashbin.FileList($el); + this.fileList = new OCA.Trashbin.FileList( + $('#app-content-trashbin'), { + scrollContainer: $('#app-content') + } + ); this.registerFileActions(this.fileList); }, @@ -68,7 +72,7 @@ OCA.Trashbin.App = { }; $(document).ready(function() { - $('#app-content-trashbin').on('show', function() { + $('#app-content-trashbin').one('show', function() { var App = OCA.Trashbin.App; App.initialize($('#app-content-trashbin')); // force breadcrumb init |