summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/clientscript.js
diff options
context:
space:
mode:
authorSimon Rettberg2025-05-09 14:23:01 +0200
committerSimon Rettberg2025-05-09 14:23:01 +0200
commit9fd020a12aefc0154aac15ab0b952fd69f3dd663 (patch)
treed28ce4eb39d94b32fe046977b859fe66e5f589ba /modules-available/rebootcontrol/clientscript.js
parentChange non-modifying AJAX requests from POST to GET (diff)
downloadslx-admin-9fd020a12aefc0154aac15ab0b952fd69f3dd663.tar.gz
slx-admin-9fd020a12aefc0154aac15ab0b952fd69f3dd663.tar.xz
slx-admin-9fd020a12aefc0154aac15ab0b952fd69f3dd663.zip
[rebootcontrol] POST -> GET for fetching client status via AJAX
Diffstat (limited to 'modules-available/rebootcontrol/clientscript.js')
-rw-r--r--modules-available/rebootcontrol/clientscript.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/rebootcontrol/clientscript.js b/modules-available/rebootcontrol/clientscript.js
index 447072a0..51fac040 100644
--- a/modules-available/rebootcontrol/clientscript.js
+++ b/modules-available/rebootcontrol/clientscript.js
@@ -10,9 +10,9 @@ document.addEventListener('DOMContentLoaded', function() {
setTimeout(updateClientStatus, Math.max(1, 30 - stillActive) * 1000);
$.ajax({
url: "?do=rebootcontrol",
- method: "POST",
+ method: "GET",
dataType: 'json',
- data: { token: TOKEN, action: "clientstatus", clients: clients }
+ data: { action: "clientstatus", clients: clients }
}).done(function(data) {
console.log(data);
if (!data)