Bug fixes

This commit is contained in:
bergware
2020-03-22 12:00:12 +01:00
parent fd748e6e8f
commit e4aaf791e1
3 changed files with 6 additions and 3 deletions

View File

@@ -554,7 +554,7 @@ function enable_stop() {
case 'enable':
var stop = $('td#stop');
stop.html(stop.html().replace("<?=$btrfs?>",""));
$('input[value="Stop"]').prop('disabled',false);
$('input[value="_(Stop)_"]').prop('disabled',false);
break;}
});
}

View File

@@ -209,6 +209,9 @@ function xfsCheck(path) {
function updateMode(form,mode) {
$(form).find('input[name="#arg[3]"]').val(mode);
}
$.get('/webGui/include/ReloadPage.php',{btrfs:'btrfs'},function(btrfs) {
if (btrfs=='disable' && !$.cookie('btrfs-balance-<?=$disk['name']?>')) btrfsBalance($.cookie('btrfs-balance-<?=$disk['name']?>'));
});
$(function() {
<?if (count($sheets)>1):?>
var ctrl = "<span class='status <?=$tabbed?'vhshift':'vshift'?>'><span class='waitmsg fa fa-circle-o-notch fa-span fa-fw' style='display:none;margin-right:8px'></span><a href='/Main/<?=$type?>?name=<?=$prev?>' title='previous device'>";

View File

@@ -139,8 +139,8 @@ function vfs_luks($fs) {
}
function fs_info(&$disk) {
global $display;
if ($disk['fsStatus']=='-') {
echo ($disk['type']=='Cache' && $disk['name']!='cache') ? "<td colspan='4'>"._('Device is part of a pool')."</td><td></td>" : "<td colspan='5'></td>";
if (empty($disk['fsStatus'])) {
echo ($disk['type']=='Cache') ? "<td colspan='4'>"._('Device is part of a pool')."</td><td></td>" : "<td colspan='5'></td>";
return;
} elseif ($disk['fsStatus']=='Mounted') {
echo "<td>".vfs_type($disk['fsType'])."</td>";