Add an event to refresh Datatables

This commit is contained in:
Stephen Abello
2022-11-15 10:08:29 +01:00
parent df3fc8be7f
commit 75c8738538

View File

@@ -362,7 +362,10 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
oTable{{ sListIDForVarSuffix }}.select();
$('#{{ oUIBlock.GetId() }}').on('refresh.datatable.itop', function (){
oTable{{ sListIDForVarSuffix }}.clearPipeline();
oTable{{ sListIDForVarSuffix }}.ajax.reload(null, false);
});
{% if oUIBlock.GetOption('sCountSelector') is not empty %}
$('#{{ sListId }} [name="selectionCount"]').bind('change', function () {