From 4f646415fd8e4881d67b3162c41050ca02e0d400 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 18 Dec 2010 18:48:09 -0500 Subject: Add total allocated box that adds up all of the sizes that have been allocated thus far --- usr/local/www/installer/installer.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'usr') diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php index b1f991e..3a9eddc 100644 --- a/usr/local/www/installer/installer.php +++ b/usr/local/www/installer/installer.php @@ -668,6 +668,18 @@ function installer_custom() { body_html(); page_table_start(); echo << + 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); + } + } + $('totalsize').value = totalsize; + } + "; } echo <<