Skip to content

Commit

Permalink
Add some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Teihden committed Aug 2, 2023
1 parent b466416 commit 7de4f87
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/js/modules/datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,13 @@ const initDatatable = (table) => {
});
});

dataTable.on('column-visibility', () => resizeTable);
dataTable.on('column-visibility', () => {
table.css('width', '100%');
dataTable.columns.adjust().draw();

removeColResizable(table);
setTimeout(() => initColResizable(table));
});

// Отображение кнопки удалить
dataTable.on('click', '.data-table__multipoint-button', (evt) => {
Expand Down

0 comments on commit 7de4f87

Please sign in to comment.