summaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-01-14 20:39:23 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2015-03-26 20:56:51 +0100
commitff9c85ce60aac1098c741b7ea630d9fc545e3d96 (patch)
treeb51ab4917630680beb0499fae4a1d7c0ae100e34 /settings/js/admin.js
parenta9b4f0d8429dbeb612e80b168b6146890bb7843e (diff)
downloadnextcloud-server-ff9c85ce60aac1098c741b7ea630d9fc545e3d96.tar.gz
nextcloud-server-ff9c85ce60aac1098c741b7ea630d9fc545e3d96.zip
implement basic encryption functionallity in core to enable multiple encryption modules
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index a3c941f08a4..d16ab903063 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -54,6 +54,22 @@ $(document).ready(function(){
$('#shareAPI p:not(#enable)').toggleClass('hidden', !this.checked);
});
+ $('#encryptionEnabled').change(function() {
+ $('#encryptionAPI div#selectEncryptionModules').toggleClass('hidden');
+ });
+
+ $('#encryptionAPI input').change(function() {
+ var value = $(this).val();
+ if ($(this).attr('type') === 'checkbox') {
+ if (this.checked) {
+ value = 'yes';
+ } else {
+ value = 'no';
+ }
+ }
+ OC.AppConfig.setValue('core', $(this).attr('name'), value);
+ });
+
$('#shareAPI input:not(#excludedGroups)').change(function() {
var value = $(this).val();
if ($(this).attr('type') === 'checkbox') {