Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
task
/
212
/
root
/
proc
/
self
/
root
/
proc
/
212
/
root
/
proc
/
70528
/
cwd
/
public
/
js
/
//proc/212/task/212/root/proc/self/root/proc/212/root/proc/70528/cwd/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(); }