mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
WebUI: fix draw events for datatables
sometimes the context menu was not working because the draw action was called too early Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -840,11 +840,10 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
||||
$('#file_manager_list_container').removeClass("d-none");
|
||||
let api = $.fn.dataTable.Api(settings);
|
||||
api.columns.adjust().draw("page");
|
||||
drawAction();
|
||||
}
|
||||
});
|
||||
|
||||
dt.on('draw', drawAction);
|
||||
dt.on('draw.dt', drawAction);
|
||||
|
||||
function drawAction() {
|
||||
//{{- if .CanAddFiles}}
|
||||
|
||||
Reference in New Issue
Block a user