fix: AJAX-URL-Pfade für Ausbauen-Funktion korrigiert
KundenKarte.ajaxUrl/token existiert nicht - ersetze durch baseUrl + '/custom/kundenkarte/ajax/...' (wie alle anderen AJAX-Aufrufe im Modul). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
fd8d11e764
commit
aa67a77d16
2 changed files with 6 additions and 6 deletions
|
|
@ -129,11 +129,11 @@
|
||||||
$('#kundenkarte-decommission-dialog').remove();
|
$('#kundenkarte-decommission-dialog').remove();
|
||||||
$(document).off('keydown.decommDialog');
|
$(document).off('keydown.decommDialog');
|
||||||
|
|
||||||
$.post(KundenKarte.ajaxUrl + '/anlage.php', {
|
$.post(baseUrl + '/custom/kundenkarte/ajax/anlage.php', {
|
||||||
action: 'toggle_decommissioned',
|
action: 'toggle_decommissioned',
|
||||||
anlage_id: anlageId,
|
anlage_id: anlageId,
|
||||||
date_decommissioned: dateVal,
|
date_decommissioned: dateVal,
|
||||||
token: KundenKarte.token
|
token: $('input[name="token"]').val() || ''
|
||||||
}, function(res) {
|
}, function(res) {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if (typeof onSuccess === 'function') {
|
if (typeof onSuccess === 'function') {
|
||||||
|
|
@ -302,10 +302,10 @@
|
||||||
if ($row.length) {
|
if ($row.length) {
|
||||||
// Wieder einbauen - einfache Bestätigung
|
// Wieder einbauen - einfache Bestätigung
|
||||||
KundenKarte.showConfirm('Wieder einbauen', 'Element wieder als eingebaut markieren?', function() {
|
KundenKarte.showConfirm('Wieder einbauen', 'Element wieder als eingebaut markieren?', function() {
|
||||||
$.post(KundenKarte.ajaxUrl + '/anlage.php', {
|
$.post(baseUrl + '/custom/kundenkarte/ajax/anlage.php', {
|
||||||
action: 'toggle_decommissioned',
|
action: 'toggle_decommissioned',
|
||||||
anlage_id: anlageId,
|
anlage_id: anlageId,
|
||||||
token: KundenKarte.token
|
token: $('input[name="token"]').val() || ''
|
||||||
}, function(res) {
|
}, function(res) {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
location.reload();
|
location.reload();
|
||||||
|
|
|
||||||
|
|
@ -625,10 +625,10 @@
|
||||||
if (isDecomm) {
|
if (isDecomm) {
|
||||||
// Wieder einbauen - Bestätigung
|
// Wieder einbauen - Bestätigung
|
||||||
window.KundenKarte.showConfirm('Wieder einbauen', 'Element wieder als eingebaut markieren?', function() {
|
window.KundenKarte.showConfirm('Wieder einbauen', 'Element wieder als eingebaut markieren?', function() {
|
||||||
$.post(window.KundenKarte.ajaxUrl + '/anlage.php', {
|
$.post(self.moduleUrl + '/ajax/anlage.php', {
|
||||||
action: 'toggle_decommissioned',
|
action: 'toggle_decommissioned',
|
||||||
anlage_id: anlageId,
|
anlage_id: anlageId,
|
||||||
token: window.KundenKarte.token
|
token: $('input[name="token"]').val() || ''
|
||||||
}, function(res) {
|
}, function(res) {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
nodeEl.data('decommissioned', 0);
|
nodeEl.data('decommissioned', 0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue