mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-24 16:18:00 +01:00
Fixed persistend datatables fixedHeaders on other page.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user