Cambiado la url de presupuestos adminstrador de cosidotapablanda a presupuestosadmin

This commit is contained in:
imnavajas
2024-11-16 09:06:43 +01:00
parent 9c14e77b10
commit df3ab47526
7 changed files with 21 additions and 21 deletions

View File

@ -231,7 +231,7 @@ theTable.on( 'draw.dt', function () {
$(document).on('click', '.btn-edit', function(e) {
window.location.href = `/presupuestos/presupuestoadmin/edit/${$(this).attr('data-id')}/`;
window.location.href = `/presupuestoadmin/edit/${$(this).attr('data-id')}/`;
});
@ -245,7 +245,7 @@ $(document).on('click', '.btn-remove', function(e) {
const row = $(this).closest('tr');
if ($.isNumeric(dataId)) {
$.ajax({
url: `/presupuestos/presupuestoadmin/delete/${dataId}`,
url: `/presupuestoadmin/delete/${dataId}`,
method: 'GET',
}).done((data, textStatus, jqXHR) => {
$('#confirm2delete').modal('toggle');

View File

@ -111,7 +111,7 @@
token=response.<?= csrf_token() ?>;
yeniden(token);
// redirect
new_location = '<?= site_url("presupuestos/presupuestoadmin/edit/") ?>' + response.id
new_location = '<?= site_url("presupuestoadmin/edit/") ?>' + response.id
window.location.href = new_location;
}
}).fail(function (jqXHR, textStatus, error) {
@ -136,7 +136,7 @@
token=response.<?= csrf_token() ?>;
yeniden(token);
// redirect
new_location = '<?= site_url("presupuestos/presupuestoadmin/edit/") ?>' + response.id
new_location = '<?= site_url("presupuestoadmin/edit/") ?>' + response.id
window.location.href = new_location;
}
}).fail(function (jqXHR, textStatus, error) {