summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-26 21:14:59 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-26 21:14:59 +0100
commit232518ac548a1d8f99c51fe391eb6132c1154dba (patch)
treedcf369f169b600028bdb2d55d577fc7ffe781b32 /settings/js
parent0cb133003ced4e3d2486b6301459ea0e998ef2ec (diff)
parentff9c85ce60aac1098c741b7ea630d9fc545e3d96 (diff)
downloadnextcloud-server-232518ac548a1d8f99c51fe391eb6132c1154dba.tar.gz
nextcloud-server-232518ac548a1d8f99c51fe391eb6132c1154dba.zip
Merge pull request #15234 from owncloud/encryption2_core
core part of encryption 2.0
Diffstat (limited to 'settings/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 6ec1a061fc9..d1dc23382f9 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') {