moved all global variables into glob object

This commit is contained in:
azivner
2017-11-04 00:05:08 -04:00
parent 3892666961
commit 44cfff09d9
13 changed files with 79 additions and 79 deletions

View File

@@ -44,7 +44,7 @@ $("#change-password-form").submit(() => {
// encryption password changed so current encryption session is invalid and needs to be cleared
resetEncryptionSession();
globalEncryptedDataKey = result.new_encrypted_data_key;
glob.encryptedDataKey = result.new_encrypted_data_key;
alert("Password has been changed.");
@@ -74,7 +74,7 @@ $("#encryption-timeout-form").submit(() => {
success: () => {
alert("Encryption timeout has been changed.");
globalEncryptionSessionTimeout = encryptionTimeout;
glob.encryptionSessionTimeout = encryptionTimeout;
},
error: () => alert("Error occurred during changing encryption timeout.")
});