diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-03-30 17:29:07 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-07 13:30:28 +0200 |
commit | e7a68d1c21c52a39ddec59579ab7701dfef82b2a (patch) | |
tree | f18553183eee730b754f89bf2b5a2a1ce5facade /apps/files_encryption/js/settings-personal.js | |
parent | 0eee3a2618235bcb59ce1bcb98526a7592de4578 (diff) | |
download | nextcloud-server-e7a68d1c21c52a39ddec59579ab7701dfef82b2a.tar.gz nextcloud-server-e7a68d1c21c52a39ddec59579ab7701dfef82b2a.zip |
remove old encryption app
Diffstat (limited to 'apps/files_encryption/js/settings-personal.js')
-rw-r--r-- | apps/files_encryption/js/settings-personal.js | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/apps/files_encryption/js/settings-personal.js b/apps/files_encryption/js/settings-personal.js deleted file mode 100644 index b798ba7e4e1..00000000000 --- a/apps/files_encryption/js/settings-personal.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Copyright (c) 2013, Sam Tuke <samtuke@owncloud.com> - * This file is licensed under the Affero General Public License version 3 or later. - * See the COPYING-README file. - */ - -function updatePrivateKeyPasswd() { - var oldPrivateKeyPassword = $('input:password[id="oldPrivateKeyPassword"]').val(); - var newPrivateKeyPassword = $('input:password[id="newPrivateKeyPassword"]').val(); - OC.msg.startSaving('#encryption .msg'); - $.post( - OC.filePath( 'files_encryption', 'ajax', 'updatePrivateKeyPassword.php' ) - , { oldPassword: oldPrivateKeyPassword, newPassword: newPrivateKeyPassword } - , function( data ) { - if (data.status === "error") { - OC.msg.finishedSaving('#encryption .msg', data); - } else { - OC.msg.finishedSaving('#encryption .msg', data); - } - } - ); -} - -$(document).ready(function(){ - - // Trigger ajax on recoveryAdmin status change - $( 'input:radio[name="userEnableRecovery"]' ).change( - function() { - var recoveryStatus = $( this ).val(); - OC.msg.startAction('#userEnableRecovery .msg', 'Updating recovery keys. This can take some time...'); - $.post( - OC.filePath( 'files_encryption', 'ajax', 'userrecovery.php' ) - , { userEnableRecovery: recoveryStatus } - , function( data ) { - OC.msg.finishedAction('#userEnableRecovery .msg', data); - } - ); - // Ensure page is not reloaded on form submit - return false; - } - ); - - $("#encryptAll").click( - function(){ - - // Hide feedback messages in case they're already visible - $('#encryptAllSuccess').hide(); - $('#encryptAllError').hide(); - - var userPassword = $( '#userPassword' ).val(); - var encryptAll = $( '#encryptAll' ).val(); - - $.post( - OC.filePath( 'files_encryption', 'ajax', 'encryptall.php' ) - , { encryptAll: encryptAll, userPassword: userPassword } - , function( data ) { - if ( data.status == "success" ) { - $('#encryptAllSuccess').show(); - } else { - $('#encryptAllError').show(); - } - } - ); - // Ensure page is not reloaded on form submit - return false; - } - - ); - - // update private key password - - $('input:password[name="changePrivateKeyPassword"]').keyup(function(event) { - var oldPrivateKeyPassword = $('input:password[id="oldPrivateKeyPassword"]').val(); - var newPrivateKeyPassword = $('input:password[id="newPrivateKeyPassword"]').val(); - if (newPrivateKeyPassword !== '' && oldPrivateKeyPassword !== '' ) { - $('button:button[name="submitChangePrivateKeyPassword"]').removeAttr("disabled"); - if(event.which === 13) { - updatePrivateKeyPasswd(); - } - } else { - $('button:button[name="submitChangePrivateKeyPassword"]').attr("disabled", "true"); - } - }); - - $('button:button[name="submitChangePrivateKeyPassword"]').click(function() { - updatePrivateKeyPasswd(); - }); - -}); |