mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Cambiado la url de presupuestos adminstrador de cosidotapablanda a presupuestosadmin
This commit is contained in:
@ -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');
|
||||
@ -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) {
|
||||
@ -289,13 +289,13 @@ 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')}/`;
|
||||
});
|
||||
|
||||
theTable.on('click', 'tr', function () {
|
||||
var data = theTable.row(this).data();
|
||||
console.log(data);
|
||||
var url = '/presupuestos/presupuestoadmin/edit/' + data['id'];
|
||||
var url = '/presupuestoadmin/edit/' + data['id'];
|
||||
window.location.href = url;
|
||||
});
|
||||
|
||||
@ -309,7 +309,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');
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
|
||||
/*
|
||||
fetch("/presupuestos/presupuestoadmin/datatable", {
|
||||
fetch("/presupuestoadmin/datatable", {
|
||||
|
||||
method: 'POST',
|
||||
body: JSON.stringify(data),
|
||||
|
||||
Reference in New Issue
Block a user