summaryrefslogtreecommitdiffstats
path: root/usr/local/www/installer
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-19 13:21:09 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-19 13:21:09 -0500
commit80f2185d4bfcaa50ef7a27ba0f522579b690b02c (patch)
treef6fbe544451a210cc27ed457620303c19b26f334 /usr/local/www/installer
parent611c9b3d4e099f7143459831a0cc975f7883cda1 (diff)
downloadpfsense-80f2185d4bfcaa50ef7a27ba0f522579b690b02c.zip
pfsense-80f2185d4bfcaa50ef7a27ba0f522579b690b02c.tar.gz
Only add to total allocated field if the value is above > 0 for the item
Diffstat (limited to 'usr/local/www/installer')
-rw-r--r--usr/local/www/installer/installer.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php
index ea8f0ab..8c51d4e 100644
--- a/usr/local/www/installer/installer.php
+++ b/usr/local/www/installer/installer.php
@@ -689,12 +689,12 @@ function installer_custom() {
function row_helper_dynamic_custom(tr) {
var totalsize = 0;
for(var x = 0; x<99; x++) { //optimize me better
- if($('size' + x)) {
- totalsize += parseInt($('size' + x).value);
- //alert($('size' + x).value);
+ if(\$('size' + x)) {
+ if(parseInt($('size' + x).value) > 0)
+ totalsize += parseInt($('size' + x).value);
}
}
- $('totalsize').value = totalsize;
+ \$('totalsize').value = totalsize;
}
</script>
<script type="text/javascript" src="/javascript/row_helper_dynamic.js"></script>
@@ -846,7 +846,7 @@ EOF;
\$('contentdiv').appear();
function onfstypeChange() {
for(var x = 0; x<99; x++) { //optimize me better
- if($('fstype' + x)) {
+ if(\$('fstype' + x)) {
var fstype = \$F('fstype' + x);
if(fstype.substring(fstype.length - 4) == ".eli") {
\$('encpass' + x).disabled = 0;
OpenPOWER on IntegriCloud