Kis reszelés és jó is lett.

This commit is contained in:
2025-03-14 11:36:42 +01:00
parent 7f01ca243a
commit 50b14e8122
2 changed files with 5 additions and 0 deletions
@@ -93,11 +93,13 @@
processing:true
});
$('#tbCheckPointsEditPage').on('click', '.edit-btn', function ()
{
const row = table.row($(this).closest('tr')).data();
});
$('#tbCheckPointsEditPage').on('click', '.delete-btn', function ()
{
const row = table.row($(this).closest('tr')).data();
@@ -112,6 +114,7 @@
}
});
});
$("#saveCheckPoint").click(function () {
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
var formData = getFormAsNestedObject('#checkPointForm');
@@ -61,11 +61,13 @@
processing:true
});
$('#tbCheckPointsPage').on('click', '.edit-btn', function ()
{
const row = table.row($(this).closest('tr')).data();
window.location.href = `@Url.Page("./CheckPointEditPage")?id=${row.id}`;
});
$('#tbCheckPointsPage').on('click', '.delete-btn', function ()
{
const row = table.row($(this).closest('tr')).data();