Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
root
/
srv
/
data
/
web
/
vhosts
/
www.impressionrapide.fr
/
htdocs
/
public
/
js
/
//proc/212/root/srv/data/web/vhosts/www.impressionrapide.fr/htdocs/public/js/command-list.js
/** * Changes the status of a command asynchronously * @param {Number} id the id of the command */ function changeCommandStatus(id) { let status = document.getElementById("command-status-" + id).value; let request = new XMLHttpRequest(); request.open("POST", `/admin/command/${id}/change-status/${status}`); request.onload = () => { if (request.response == '"success"') { sendAlert("success", "Status modifié"); } else { sendAlert("danger", "Une erreur c'est produite, veuillez réessayer"); } document.getElementById("status-popup-" + id).classList.remove("open"); } request.send(); }