From 7e89986c7aa76cfc8f7f9f122cc68b3994cffcea Mon Sep 17 00:00:00 2001 From: root Date: Mon, 16 Sep 2024 14:59:48 +0200 Subject: [PATCH] check updates --- manage.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/manage.html b/manage.html index b320baa..f7204bc 100644 --- a/manage.html +++ b/manage.html @@ -139,6 +139,27 @@ function get_system() { }); } +function check_updates() { + var url = 'scan.php?op=check_updates'; + jQuery.get(url, function(data) { + if (data=="WAIT" || data=="") { + setTimeout(check_updates, 1000); + } + else { + jQuery("#updates").html(data); + } + }); +} + +function get_updates() { + var url = 'scan.php?op=update'; + jQuery.get(url, function(data) { + if (data=="OK") { + setTimeout(check_update, 1000); + } + }); +} + function check_deployments() { var url = 'scan.php?op=check_deployments'; jQuery.get(url, function(data) {