summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/js
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2013-03-29 21:11:29 +0100
committerSam Tuke <samtuke@owncloud.com>2013-03-29 21:11:29 +0100
commit14451bdaf07f88c6ac46092c74b987a360b04547 (patch)
treef6c311d359e121c4005abb392bf192628365966d /apps/files_encryption/js
parent3cbfacb439396b411f1cd89f1eb232704e6b5d55 (diff)
downloadnextcloud-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.js14
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);