summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-21 18:50:49 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-21 18:50:56 -0500
commitec981fc568ab2ccaf5bd657c28c1949d83868387 (patch)
tree0aa8123724ed78f67c46108ed8163ea9708d2433
parent7513352b9ce5ea89ee8cdc17bc7f71464a39cfc3 (diff)
downloadpfsense-ec981fc568ab2ccaf5bd657c28c1949d83868387.zip
pfsense-ec981fc568ab2ccaf5bd657c28c1949d83868387.tar.gz
Turn background field to green when all disk capacity has been correctly allocated to the various slices.
-rw-r--r--usr/local/www/installer/installer.php21
1 files changed, 18 insertions, 3 deletions
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'
+ });
+ }
+ }
}
}
</script>
@@ -919,8 +934,8 @@ EOF;
// tfoot and tbody are used by rowhelper
$custom_txt .= "</tr>";
$custom_txt .= "<tfoot></tfoot></tbody>";
- $custom_txt .= "<tr><td></td><td></td><td align='right'>Total allocated:</td><td><input size='8' id='totalsize' name='totalsize'></td></tr>";
- $custom_txt .= "<tr><td></td><td></td><td align='right'>Disk capacity total:</td><td><input size='8' id='disktotals' name='disktotals'></td></tr>";
+ $custom_txt .= "<tr><td></td><td></td><td align='right'>Total allocated:</td><td><input style='border:0px; background-color: #FFFFFF;' size='8' id='totalsize' name='totalsize'></td></tr>";
+ $custom_txt .= "<tr><td></td><td></td><td align='right'>Disk capacity total:</td><td><input style='border:0px; background-color: #FFFFFF;' size='8' id='disktotals' name='disktotals'></td></tr>";
$custom_txt .= "</table>";
$custom_txt .= "<script type=\"text/javascript\">row_helper_dynamic_custom();</script>";
}
OpenPOWER on IntegriCloud