mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Add an event to refresh Datatables
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user