From ec981fc568ab2ccaf5bd657c28c1949d83868387 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 21 Dec 2010 18:50:49 -0500 Subject: Turn background field to green when all disk capacity has been correctly allocated to the various slices. --- usr/local/www/installer/installer.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php index 56f27d3..90d4eea 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 .= ""; } -- cgit v1.1