Only show encryption warning once

This commit is contained in:
Scott Ullrich 2010-12-19 13:40:48 -05:00
parent 80f2185d4b
commit cace4c41d8

View File

@ -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;
}