Array updates using Nchan (Main page)

This commit is contained in:
bergware
2021-05-12 18:02:19 +02:00
parent a8e863f5b0
commit cd96527280

View File

@@ -4,8 +4,8 @@ Tag="bullseye"
Cond="($pool_devices || $var['fsState']=='Stopped')"
---
<?PHP
/* Copyright 2005-2020, Lime Technology
* Copyright 2012-2020, Bergware International.
/* Copyright 2005-2021, Lime Technology
* Copyright 2012-2021, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
@@ -80,23 +80,9 @@ function addPoolPopup() {
$(".ui-button-text").css({'padding':'0px 5px'});
}
function pool_status() {
$.post('/webGui/include/DeviceList.php',{path:'<?=$path?>',device:'cache'},function(d) {
if (!d) return;
d = d.split('\0');
for (var i=0,data; data=d[i]; i++) {
if (data) $('#pool_device'+i).html(data); display_diskio();
}
<?if ($var['fsState']=='Started'):?>
timers.pool_status = setTimeout(pool_status,3000);
<?endif;?>
});
}
<?if ($var['fsState']=='Started'):?>
$('#tab2').bind({click:function() {$('i.toggle').show('slow');}});
<?endif;?>
pool_status();
</script>
<?$i = 0?>