mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 12:08:47 +02:00
Stylize datatables before widget is loaded in order to avoid flickering
This commit is contained in:
@@ -50,6 +50,10 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
{
|
||||
this.closest('.dataTables_wrapper').find('.dataTables_length').hide();
|
||||
}
|
||||
|
||||
// Set header and body datatables status as loaded
|
||||
this.attr('data-status', 'loaded');
|
||||
this.closest('.dataTables_scroll').find('.dataTables_scrollHead .ibo-datatable').attr('data-status', 'loaded');
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user