updates name fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-09-17 17:40:28 +02:00
parent b6ab5dda0a
commit 1034b71d92

View File

@@ -52,7 +52,7 @@
<fieldset> <fieldset>
<legend>Updates</legend> <legend>Updates</legend>
<div id="updates" style="text-align:left"> <div id="updates" style="text-align:left">
<a href="javascript:void()" id="update_btn">Looking for updates</a> <a href="javascript:void()" id="update_btn">Search updates</a>
</div> </div>
</fieldset> </fieldset>
</fieldset> </fieldset>
@@ -152,10 +152,10 @@ function check_updates() {
} }
function get_updates() { function get_updates() {
var url = 'scan.php?op=update'; var url = 'scan.php?op=updates';
jQuery.get(url, function(data) { jQuery.get(url, function(data) {
if (data=="OK") { if (data=="OK") {
setTimeout(check_update, 1000); setTimeout(check_updates, 1000);
} }
}); });
} }
@@ -265,6 +265,7 @@ jQuery(document).ready(function(){
}); });
jQuery('#update_btn').click(function() { jQuery('#update_btn').click(function() {
jQuery('#updates').html('Looking for updates... Please wait...');
get_updates(); get_updates();
}); });