Fixed persistend datatables fixedHeaders on other page.

This commit is contained in:
Jan Böhmer 2020-01-05 14:15:10 +01:00
parent 2b81447c52
commit 8921326b74

View file

@ -508,6 +508,11 @@ class AjaxUI {
*/
protected initDataTables()
{
//@ts-ignore
$($.fn.DataTable.tables()).DataTable().fixedHeader.disable();
//@ts-ignore
$($.fn.DataTable.tables()).DataTable().destroy();
//Find all datatables and init it.
let $tables = $('[data-datatable]');
$.each($tables, function(index, table) {