diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-07-31 16:37:37 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-07-31 16:37:37 +0200 |
commit | e4e6574e425b666170ac56238a3bb6c84a2d50e2 (patch) | |
tree | be333169bee737b10ab6c01d046ed5a6e5dec73e /apps/files_encryption/js/settings.js | |
parent | 9bab06537c8d455c1a93b167193ec7cdebe89ffe (diff) | |
download | nextcloud-server-e4e6574e425b666170ac56238a3bb6c84a2d50e2.tar.gz nextcloud-server-e4e6574e425b666170ac56238a3bb6c84a2d50e2.zip |
allow admin to choose between client and server side encryption
Diffstat (limited to 'apps/files_encryption/js/settings.js')
-rw-r--r-- | apps/files_encryption/js/settings.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/files_encryption/js/settings.js b/apps/files_encryption/js/settings.js index 8cc433246cb..49dcf2bfca3 100644 --- a/apps/files_encryption/js/settings.js +++ b/apps/files_encryption/js/settings.js @@ -21,4 +21,15 @@ $(document).ready(function(){ var checked=$('#enable_encryption').is(':checked'); OC.AppConfig.setValue('files_encryption','enable_encryption',(checked)?'true':'false'); }) + $('input[name=encryption_mode]').change(function(){ + var client=$('input[value="client"]:checked').val() + ,server=$('input[value="server"]:checked').val() + ,none=$('input[value="none"]:checked').val() + if (client) + OC.AppConfig.setValue('files_encryption','mode','client'); + if (server) + OC.AppConfig.setValue('files_encryption','mode','server'); + if (none) + OC.AppConfig.setValue('files_encryption','mode','none'); + }) })
\ No newline at end of file |