diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-12-19 13:40:48 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-12-19 13:40:48 -0500 |
commit | cace4c41d8abaf3e495eb107181cbc5e628fa797 (patch) | |
tree | 89a5b6df544b4df78156c0a9088988ca330cf9b1 /usr/local/www | |
parent | 80f2185d4bfcaa50ef7a27ba0f522579b690b02c (diff) | |
download | pfsense-cace4c41d8abaf3e495eb107181cbc5e628fa797.zip pfsense-cace4c41d8abaf3e495eb107181cbc5e628fa797.tar.gz |
Only show encryption warning once
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/installer/installer.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php index 8c51d4e..d67a150 100644 --- a/usr/local/www/installer/installer.php +++ b/usr/local/www/installer/installer.php @@ -843,6 +843,7 @@ EOF; <input type="submit" value="Next"> </div> <script type="text/javascript"> + var encryption_warning_shown = false; \$('contentdiv').appear(); function onfstypeChange() { for(var x = 0; x<99; x++) { //optimize me better @@ -850,7 +851,10 @@ EOF; 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!'); + 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; } |