Skip to content

Commit

Permalink
Add some minor fixes №2
Browse files Browse the repository at this point in the history
  • Loading branch information
Teihden committed Aug 2, 2023
1 parent 7de4f87 commit 2565134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/modules/datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ const initDatatable = (table) => {
const tr = target.closest('tr');
const index = dataTable.row(tr).index();

const cell = dataTable.cell(target.closest('td'));
cell.data(value);
initCustomSelect();

// Функция для отправки данных на сервер
$.post('example.php', { [name]: value, index })
.done(() => { })
Expand Down

0 comments on commit 2565134

Please sign in to comment.