3
Lazarus.db = Lazarus.getBrowser().Lazarus.db;
4
Lazarus.Crypto = Lazarus.getBrowser().Lazarus.Crypto;
11
//and dont let them cancel it
12
//document.getElementById('').disabled = true;
13
if (Lazarus.getBrowser().Lazarus.enterMasterPassword()){
14
//okey dokey, lets do it.
15
//better tell the user that this might take a while
16
document.getElementById('generate-keys-progress').style.visibility = "visible";
17
document.getElementById('generate-keys-text').style.visibility = "visible";
19
if (Lazarus.getBrowser().Lazarus.generateEncryptionKeys()){
20
alert(strings['keys-generated']);
23
alert(strings['key-generation-error']);
25
//and close the dialog
29
alert(strings['password-not-entered']);
39
alert(strings['key-generation-cancelled']);