diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php index 56f27d3fb6..90d4eeafe7 100644 --- a/usr/local/www/installer/installer.php +++ b/usr/local/www/installer/installer.php @@ -767,9 +767,24 @@ function installer_custom() { disksseen++; } } - } \$('disktotals').value = tmp_sizedisks; \$('disktotals').disabled = 1; + \$('disktotals').setStyle({color:'#000000'}); + var remaining = parseInt(\$('disktotals').value) - parseInt(\$('totalsize').value); + if(remaining == 1) { + if(\$('totalsize')) + \$('totalsize').setStyle({ + background:'#00FF00', + color:'#000000' + }); + } else { + if(\$('totalsize')) + \$('totalsize').setStyle({ + background:'#FFFFFF', + color:'#000000' + }); + } + } } } @@ -919,8 +934,8 @@ EOF; // tfoot and tbody are used by rowhelper $custom_txt .= ""; $custom_txt .= ""; - $custom_txt .= "Total allocated:"; - $custom_txt .= "Disk capacity total:"; + $custom_txt .= "Total allocated:"; + $custom_txt .= "Disk capacity total:"; $custom_txt .= ""; $custom_txt .= ""; }