diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-05-05 10:38:09 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-05-05 10:38:09 +0200 |
commit | 8f1e504d7974080381fed378f5335c9dd323e3bf (patch) | |
tree | 9a09f50dd467884f77ff26c94ce7e5940b52dd2b /settings/js/admin.js | |
parent | 6dc3682cc2fde9a508747f4af1e017a77d01faae (diff) | |
download | nextcloud-server-8f1e504d7974080381fed378f5335c9dd323e3bf.tar.gz nextcloud-server-8f1e504d7974080381fed378f5335c9dd323e3bf.zip |
adjust wording and add button to confirm encryption
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r-- | settings/js/admin.js | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js index e10e1f915cb..8f705b9048d 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -54,21 +54,15 @@ $(document).ready(function(){ $('#shareAPI p:not(#enable)').toggleClass('hidden', !this.checked); }); - $('#encryptionEnabled').change(function() { + $('#enableEncryption').change(function() { $('#encryptionAPI div#EncryptionWarning').toggleClass('hidden'); - $('#encryptionAPI div#EncryptionSettingsArea').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); + $('#reallyEnableEncryption').click(function() { + $('#encryptionAPI div#EncryptionWarning').toggleClass('hidden'); + $('#encryptionAPI div#EncryptionSettingsArea').toggleClass('hidden'); + OC.AppConfig.setValue('core', 'encryption_enabled', 'yes'); + $('#enableEncryption').attr('disabled', 'disabled'); }); $('#startmigration').click(function(event){ |