Always show filelist header and give scroll top indicator

This commit is contained in:
Johannes Zellner
2020-11-08 00:46:34 +01:00
parent b5fa60235d
commit 85ff6a02bf
3 changed files with 37 additions and 11 deletions

View File

@@ -751,6 +751,11 @@ app.controller('FileManagerController', ['$scope', '$timeout', 'Client', functio
});
});
$('.file-list').on('scroll', function (event) {
if (event.target.scrollTop > 10) event.target.classList.add('top-scroll-indicator');
else event.target.classList.remove('top-scroll-indicator');
});
// setup all the dialog focus handling
['newFileModal', 'newDirectoryModal', 'renameEntryModal'].forEach(function (id) {
$('#' + id).on('shown.bs.modal', function () {