summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-04-19 16:36:07 +0200
committerRobin Appelman <icewind@owncloud.com>2012-04-22 21:27:20 +0200
commitc5b31b001a12e4035555c6b507b6347bce90e272 (patch)
treed3e4e4cc1b22c171e4a2362cd97b8c2aa7f605bc /apps/files_encryption/js
parent44fa4433bc4bda437bf6c88a5020af075fb797d8 (diff)
downloadnextcloud-server-c5b31b001a12e4035555c6b507b6347bce90e272.tar.gz
nextcloud-server-c5b31b001a12e4035555c6b507b6347bce90e272.zip
add the option to disable file encryption while still being able to decrypt existing files
Diffstat (limited to 'apps/files_encryption/js')
-rw-r--r--apps/files_encryption/js/settings.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_encryption/js/settings.js b/apps/files_encryption/js/settings.js
index adbf0c87245..37d62265c94 100644
--- a/apps/files_encryption/js/settings.js
+++ b/apps/files_encryption/js/settings.js
@@ -16,4 +16,9 @@ $(document).ready(function(){
var blackList=$('#encryption_blacklist').val().join(',');
OC.AppConfig.setValue('files_encryption','type_blacklist',blackList);
}
+
+ $('#enbale_encryption').change(function(){
+ var checked=$('#enbale_encryption').is(':checked');
+ OC.AppConfig.setValue('files_encryption','enable_encryption',(checked)?'true':'false');
+ })
}) \ No newline at end of file