Merge branch 'ent-13653-17479-Mensaje-equivocado-al-borrar-SO' into 'develop'
Ent 13653 17479 mensaje equivocado al borrar so See merge request artica/pandorafms!7315
This commit is contained in:
commit
d0e18b940d
|
@ -219,7 +219,9 @@ echo '<div id="aux" class="invisible"></div>';
|
||||||
$('#aux').text('<?php echo __('Not deleted. Error deleting data'); ?>');
|
$('#aux').text('<?php echo __('Not deleted. Error deleting data'); ?>');
|
||||||
} else {
|
} else {
|
||||||
$('#aux').dialog('close');
|
$('#aux').dialog('close');
|
||||||
location.reload();
|
let url = new URL(window.location.href);
|
||||||
|
url.searchParams.set('message', r.url_message)
|
||||||
|
window.location.href = url.href;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(e) {
|
error: function(e) {
|
||||||
|
|
|
@ -60,7 +60,12 @@ if ($method === 'deleteOS') {
|
||||||
) {
|
) {
|
||||||
echo json_encode(['deleted' => false]);
|
echo json_encode(['deleted' => false]);
|
||||||
} else {
|
} else {
|
||||||
echo json_encode(['deleted' => true]);
|
echo json_encode(
|
||||||
|
[
|
||||||
|
'deleted' => true,
|
||||||
|
'url_message' => 6,
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue