diff options
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/admin.js | 16 |
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') { |