From a17f284ccf3279b1f04b174b8a58d6de5396c849 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 19 Dec 2010 16:14:44 -0500 Subject: Add rowhelper_onChange variable for row helper and remove the previous function detection code --- usr/local/www/installer/installer.php | 40 +++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 18 deletions(-) (limited to 'usr/local/www/installer') diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php index cfc2d57..dae33f6 100644 --- a/usr/local/www/installer/installer.php +++ b/usr/local/www/installer/installer.php @@ -709,7 +709,27 @@ function installer_custom() { page_table_start($g['product_name'] . " installer - Customize disk(s) layout"); echo << - function row_helper_dynamic_custom(tr) { + function onfstypeChange() { + for(var x = 0; x<99; x++) { //optimize me better + if(\$('fstype' + x)) { + var fstype = \$F('fstype' + x); + if(fstype.substring(fstype.length - 4) == ".eli") { + \$('encpass' + x).disabled = 0; + if(!encryption_warning_shown) { + alert('NOTE: If you define a disk encryption password you will need to enter it on *EVERY* bootup!'); + encryption_warning_shown = true; + } + } else { + \$('encpass' + x).disabled = 1; + } + } + } + } + onfstypeChange(); + +
@@ -886,23 +907,6 @@ EOF; -- cgit v1.1