diff options
author | Sam Tuke <samtuke@owncloud.com> | 2013-03-29 21:11:29 +0100 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2013-03-29 21:11:29 +0100 |
commit | 14451bdaf07f88c6ac46092c74b987a360b04547 (patch) | |
tree | f6c311d359e121c4005abb392bf192628365966d /apps/files_encryption/js | |
parent | 3cbfacb439396b411f1cd89f1eb232704e6b5d55 (diff) | |
download | nextcloud-server-14451bdaf07f88c6ac46092c74b987a360b04547.tar.gz nextcloud-server-14451bdaf07f88c6ac46092c74b987a360b04547.zip |
Development snapshot;
Fixed errors from Hooks::login();
Work on enable/disable recoveryAdmin for lost passwords in settings page (template, ajax, js);
Work on fixing sharing files to users (still broken);
Diffstat (limited to 'apps/files_encryption/js')
-rw-r--r-- | apps/files_encryption/js/settings.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/files_encryption/js/settings.js b/apps/files_encryption/js/settings.js index 0be857bb73e..4f367f880db 100644 --- a/apps/files_encryption/js/settings.js +++ b/apps/files_encryption/js/settings.js @@ -6,12 +6,26 @@ $(document).ready(function(){ + // Trigger ajax on filetype blacklist change $('#encryption_blacklist').multiSelect({ oncheck:blackListChange, onuncheck:blackListChange, createText:'...' }); + // Trigger ajax on recoveryAdmin status change + $( 'input:radio[name="adminEnableRecovery"]' ).change( + function() { + $.post( + '../ajax/adminrecovery.php' + , $( this ).val() + , function( data ) { + // TODO: provide user with feedback of outcome + } + ); + } + ); + function blackListChange(){ var blackList=$('#encryption_blacklist').val().join(','); OC.AppConfig.setValue('files_encryption','type_blacklist',blackList); |