Refresh status bar every minute
This commit is contained in:
parent
c3992e1a17
commit
129c190b84
@ -22,7 +22,6 @@ setInterval(updateidle, 60000);
|
||||
|
||||
if ($('#vfd').length)
|
||||
{
|
||||
|
||||
function updatevfd()
|
||||
{
|
||||
$.get('/cgi-bin/vfd.jim', function(vfd) {
|
||||
@ -34,5 +33,18 @@ if ($('#vfd').length)
|
||||
setInterval(updatevfd, 5000);
|
||||
}
|
||||
|
||||
if ($('#status_txt').length)
|
||||
{
|
||||
function updatestatus()
|
||||
{
|
||||
$.get('/cgi-bin/status.jim', function(status) {
|
||||
$('#status_txt').html(status);
|
||||
});
|
||||
}
|
||||
|
||||
updatestatus();
|
||||
setInterval(updatestatus, 60000);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user