[BS5] adjust admin refresh_table function

This commit is contained in:
FreddleSpl0it 2022-06-08 12:06:14 +02:00
parent 09ae37410e
commit 6210f06bc0

View File

@ -59,9 +59,7 @@ jQuery(function($){
$(".refresh_table").on('click', function(e) { $(".refresh_table").on('click', function(e) {
e.preventDefault(); e.preventDefault();
var table_name = $(this).data('table'); var table_name = $(this).data('table');
$('#' + table_name).find("tr.footable-empty").remove(); $('#' + table_name).DataTable().ajax.reload();
draw_table = $(this).data('draw');
eval(draw_table + '()');
}); });
function draw_domain_admins() { function draw_domain_admins() {
$('#domainadminstable').DataTable({ $('#domainadminstable').DataTable({