Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-03-31 17:23:31 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 14:30:29 +0300
commite4895bda01f9c94fc33e094ae9466e1cf5502916 (patch)
treef78a79ef0c3035d443fc10e2eaedcb4f436d7091 /apps/encryption/js
parentbd933b1c85dff950e83591a6245ba2e15db33caf (diff)
add helper class accessible for encryption modules to ask for a list of users with access to a file, needed to apply the recovery key to all files
Diffstat (limited to 'apps/encryption/js')
-rw-r--r--apps/encryption/js/settings-personal.js29
1 files changed, 1 insertions, 28 deletions
diff --git a/apps/encryption/js/settings-personal.js b/apps/encryption/js/settings-personal.js
index b798ba7e4e1..7f0f4c6c26d 100644
--- a/apps/encryption/js/settings-personal.js
+++ b/apps/encryption/js/settings-personal.js
@@ -29,7 +29,7 @@ $(document).ready(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' )
+ OC.generateUrl('/apps/encryption/ajax/userSetRecovery')
, { userEnableRecovery: recoveryStatus }
, function( data ) {
OC.msg.finishedAction('#userEnableRecovery .msg', data);
@@ -40,33 +40,6 @@ $(document).ready(function(){
}
);
- $("#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) {