diff --git a/templates/webclient/files.html b/templates/webclient/files.html
index bff366df1..7892d8d5d 100644
--- a/templates/webclient/files.html
+++ b/templates/webclient/files.html
@@ -163,7 +163,11 @@
-
+
+
+ Loading...
+
+
@@ -735,10 +739,19 @@
emptyTable: $.t('fs.no_files_folders')
},
orderFixed: [1, 'asc'],
- order: [2, 'asc']
+ order: [2, 'asc'],
+ initComplete: function(settings, json) {
+ $('#loader').addClass("d-none");
+ $('#file_manager_list_container').removeClass("d-none");
+ let api = $.fn.dataTable.Api(settings);
+ api.columns.adjust().draw("page");
+ drawAction();
+ }
});
- dt.on('draw', function () {
+ dt.on('draw', drawAction);
+
+ function drawAction() {
//{{- if .CanAddFiles}}
if (dt.rows().count() === 0) {
$('#file_manager_list_container').addClass("d-none");
@@ -771,7 +784,7 @@
toggleToolbars();
handleRowActions();
$('#file_manager_list_body').localize();
- });
+ }
dt.on('user-select', function(e, dt, type, cell, originalEvent){
let pageSelected = dt.rows({ selected: true, page: 'current' }).count();