mirror of
https://github.com/unraid/webgui.git
synced 2026-01-29 21:19:07 -06:00
Array updates using Nchan (Main page)
This commit is contained in:
@@ -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?>
|
||||
|
||||
Reference in New Issue
Block a user