Fix tooltips in datatables and add events to datatables init and draw actions

This commit is contained in:
Stephen Abello
2021-02-22 09:51:12 +01:00
parent f61ec3179a
commit da77439e1e
3 changed files with 20 additions and 5 deletions

View File

@@ -108,6 +108,7 @@ var oTable{{ sListId }} = $('#{{ oUIBlock.GetId() }}').DataTable({
{
$(this).closest('.dataTables_wrapper').find('.dataTables_paginate, .dataTables_info').show();
}
$('#{{ oUIBlock.GetId() }}').trigger('drawn');
},
{% endif %}
rowId: "id",
@@ -183,6 +184,7 @@ var oTable{{ sListId }} = $('#{{ oUIBlock.GetId() }}').DataTable({
this.parent().find('.dataTables_paginate').hide();
this.parent().find('.dataTables_length').hide();
}
$('#{{ oUIBlock.GetId() }}').trigger('inited');
}
});

View File

@@ -46,5 +46,11 @@ $('#{{ oUIBlock.GetId() }}').DataTable({
sortable: true
},
{% endfor %}
]
],
initComplete: function () {
$('#{{ oUIBlock.GetId() }}').trigger('inited');
},
drawCallback: function(){
$('#{{ oUIBlock.GetId() }}').trigger('drawn');
}
});