summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-19 13:40:48 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-19 13:40:48 -0500
commitcace4c41d8abaf3e495eb107181cbc5e628fa797 (patch)
tree89a5b6df544b4df78156c0a9088988ca330cf9b1 /usr/local/www
parent80f2185d4bfcaa50ef7a27ba0f522579b690b02c (diff)
downloadpfsense-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.php6
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;
}
OpenPOWER on IntegriCloud