summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/js
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2013-04-10 17:37:03 +0200
committerSam Tuke <samtuke@owncloud.com>2013-04-16 13:22:16 +0200
commitf378a7f572e1da4b24280c1fcbf830e026186c83 (patch)
tree23c4f621dd087595a0bb2212ac1f66203ee22bc4 /apps/files_encryption/js
parent854b9207878d9c5cd8f0d972f4b16b618beade3a (diff)
downloadnextcloud-server-f378a7f572e1da4b24280c1fcbf830e026186c83.tar.gz
nextcloud-server-f378a7f572e1da4b24280c1fcbf830e026186c83.zip
Fixed proxy class handing of read / write files
Various work on other classes
Diffstat (limited to 'apps/files_encryption/js')
-rw-r--r--apps/files_encryption/js/settings.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_encryption/js/settings.js b/apps/files_encryption/js/settings.js
index 4f367f880db..9a0bebf2478 100644
--- a/apps/files_encryption/js/settings.js
+++ b/apps/files_encryption/js/settings.js
@@ -16,11 +16,14 @@ $(document).ready(function(){
// Trigger ajax on recoveryAdmin status change
$( 'input:radio[name="adminEnableRecovery"]' ).change(
function() {
+
+ var foo = $( this ).val();
+
$.post(
- '../ajax/adminrecovery.php'
- , $( this ).val()
+ OC.filePath('files_encryption', 'ajax', 'adminrecovery.php')
+ , { adminEnableRecovery: foo, recoveryPassword: 'password' }
, function( data ) {
- // TODO: provide user with feedback of outcome
+ alert( data );
}
);
}