check updates

This commit is contained in:
root
2024-09-16 14:59:48 +02:00
parent dd41be933e
commit 7e89986c7a

View File

@@ -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() { function check_deployments() {
var url = 'scan.php?op=check_deployments'; var url = 'scan.php?op=check_deployments';
jQuery.get(url, function(data) { jQuery.get(url, function(data) {