diff options
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/installer/installer.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php index bdf9608..ea8f0ab 100644 --- a/usr/local/www/installer/installer.php +++ b/usr/local/www/installer/installer.php @@ -845,12 +845,16 @@ EOF; <script type="text/javascript"> \$('contentdiv').appear(); function onfstypeChange() { - var fstype = \$F('fstype'); - if(fstype.substring(fstype.length - 4) == ".eli") { - //\$('encpass').disabled = 0; - alert('NOTE: If you define a disk encryption password you will need to enter it on *EVERY* bootup!'); - } else { - //\$('encpass').disabled = 1; + 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; + alert('NOTE: If you define a disk encryption password you will need to enter it on *EVERY* bootup!'); + } else { + \$('encpass' + x).disabled = 1; + } + } } } onfstypeChange(); |