mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 18:03:37 +02:00
Fixed persistend datatables fixedHeaders on other page.
This commit is contained in:
parent
2b81447c52
commit
8921326b74
1 changed files with 5 additions and 0 deletions
|
@ -508,6 +508,11 @@ class AjaxUI {
|
||||||
*/
|
*/
|
||||||
protected initDataTables()
|
protected initDataTables()
|
||||||
{
|
{
|
||||||
|
//@ts-ignore
|
||||||
|
$($.fn.DataTable.tables()).DataTable().fixedHeader.disable();
|
||||||
|
//@ts-ignore
|
||||||
|
$($.fn.DataTable.tables()).DataTable().destroy();
|
||||||
|
|
||||||
//Find all datatables and init it.
|
//Find all datatables and init it.
|
||||||
let $tables = $('[data-datatable]');
|
let $tables = $('[data-datatable]');
|
||||||
$.each($tables, function(index, table) {
|
$.each($tables, function(index, table) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue