diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-12-19 16:31:15 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-12-19 16:31:15 -0500 |
commit | 8fdc51595ae74f0a2219bd343bda10e528fc2acb (patch) | |
tree | 9f6035b0670baa72f8a9932eb7b93147385c518e /usr/local/www/installer | |
parent | 346cc87f87559f8d4bd75ca0c6dc01c9dce7fc6e (diff) | |
download | pfsense-8fdc51595ae74f0a2219bd343bda10e528fc2acb.zip pfsense-8fdc51595ae74f0a2219bd343bda10e528fc2acb.tar.gz |
Only for once
Diffstat (limited to 'usr/local/www/installer')
-rw-r--r-- | usr/local/www/installer/installer.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php index ef97507..166d28e 100644 --- a/usr/local/www/installer/installer.php +++ b/usr/local/www/installer/installer.php @@ -711,6 +711,7 @@ function installer_custom() { <script type="text/javascript"> function row_helper_dynamic_custom() { var totalsize = 0; + // Run through all rows and process data for(var x = 0; x<99; x++) { //optimize me better if(\$('fstype' + x)) { var fstype = \$F('fstype' + x); @@ -724,13 +725,13 @@ function installer_custom() { \$('encpass' + x).disabled = 1; } } - } - for(var x = 0; x<99; x++) { //optimize me better + // Calculate size allocations if(\$('size' + x)) { if(parseInt($('size' + x).value) > 0) totalsize += parseInt($('size' + x).value); } } + // If the totalsize element exists, set it and disable if(\$('totalsize')) { \$('totalsize').value = totalsize; \$('totalsize').disabled = 1; |