Support Main and Docker Tabs

This commit is contained in:
Squidly271
2025-03-24 12:37:02 -04:00
parent 782baac3f0
commit 23c474556f
2 changed files with 5 additions and 8 deletions

View File

@@ -192,10 +192,7 @@ $(function() {
});
$.removeCookie('lockbutton');
loadlist(true);
dockerload.start();
dockerload.start().monitor();
});
window.onunload = function(){
dockerload.stop();
}
</script>

View File

@@ -114,7 +114,7 @@ function toggle_state(device,name,action) {
button = '[id^=button-]';
}
devices.stop();
$.post('/webGui/include/ToggleState.php',{device:device,name:name,action:action},function(){setTimeout(function(){devices.start();},1000);if (button) $(button).prop('disabled',false);});
$.post('/webGui/include/ToggleState.php',{device:device,name:name,action:action},function(){setTimeout(function(){devices.start().monitor();},1000);if (button) $(button).prop('disabled',false);});
}
function display_diskio() {
@@ -364,7 +364,7 @@ mymonitor.on('message', function(state) {
break;
}
});
mymonitor.start();
mymonitor.start().monitor();
<?endif;?>
var arraymonitor = new NchanSubscriber('/sub/arraymonitor',{subscriber:'websocket'});
@@ -420,7 +420,7 @@ devices.on('message', function(msg,meta) {
break;
}
});
devices.start();
devices.start().monitor();
<?if (substr(_var($var,'fsState'),-3)=='ing'):?>
var fsState = new NchanSubscriber('/sub/fsState',{subscriber:'websocket'});
@@ -434,7 +434,7 @@ fsState.on('message', function(msg) {
break;
}
});
fsState.start();
fsState.start().monitor();
<?elseif ($spot):?>
setTimeout(function(){$('#pauseButton').prop('disabled',false);$('#cancelButton').prop('disabled',false);},250);
<?else:?>