This commit is contained in:
Pringgosutono
2025-12-02 10:19:52 +07:00
parent 1b2321e420
commit 51f68abaaa
2 changed files with 6 additions and 5 deletions

View File

@ -715,14 +715,14 @@
searchable: true,
},
{
data: 'action',
data: 'id',
className: 'text-center',
visible: true,
orderable: true,
searchable: true,
render: function(data, type, row, meta) {
let action = `
<a href="#" class="text-decoration-none me-1 btnEdtVhc">
<a href="#" class="text-decoration-none me-1 btnEdtVhc" data-vid="${data}">
<span class="icon ion-eye fz-16"></span>
</a>
`;
@ -823,7 +823,7 @@
},
},
{
data: 'crt_d',
data: 'crt',
className: 'text-end text-nowrap',
visible: true,
orderable: true,
@ -1228,7 +1228,8 @@
event: function() {
// modal
$('#tVehicles').on('click', '.btnEdtVhc', async function(e) {
let vid = $(e.target).closest('tr').find('td[data-vid]').data('vid');
// let vid = $(e.target).closest('tr').find('td[data-vid]').data('vid');
const vid = $(this).data('vid');
VEdt.removeOptionDevice(State.dvc_type.portable);
let resp = await VEdt.reqData({
vid