aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/src/admin.js')
-rw-r--r--apps/settings/src/admin.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/apps/settings/src/admin.js b/apps/settings/src/admin.js
index 3ad922ed03f..e1151d95258 100644
--- a/apps/settings/src/admin.js
+++ b/apps/settings/src/admin.js
@@ -18,37 +18,6 @@ window.addEventListener('DOMContentLoaded', () => {
$('#shareAPI p:not(#enable)').toggleClass('hidden', !this.checked)
})
- $('#enableEncryption').change(() => {
- $('#encryptionAPI div#EncryptionWarning').toggleClass('hidden')
- })
-
- $('#reallyEnableEncryption').click(() => {
- $('#encryptionAPI div#EncryptionWarning').toggleClass('hidden')
- $('#encryptionAPI div#EncryptionSettingsArea').toggleClass('hidden')
- OCP.AppConfig.setValue('core', 'encryption_enabled', 'yes')
- $('#enableEncryption').attr('disabled', 'disabled')
- })
-
- $('#startmigration').click((event) => {
- $(window).on('beforeunload.encryption', (e) => {
- return t('settings', 'Migration in progress. Please wait until the migration is finished')
- })
- event.preventDefault()
- $('#startmigration').prop('disabled', true)
- OC.msg.startAction('#startmigration_msg', t('settings', 'Migration started …'))
- $.post(OC.generateUrl('/settings/admin/startmigration'), '', function(data) {
- OC.msg.finishedAction('#startmigration_msg', data)
- if (data.status === 'success') {
- $('#encryptionAPI div#selectEncryptionModules').toggleClass('hidden')
- $('#encryptionAPI div#migrationWarning').toggleClass('hidden')
- } else {
- $('#startmigration').prop('disabled', false)
- }
- $(window).off('beforeunload.encryption')
-
- })
- })
-
$('#shareapiExpireAfterNDays').on('input', function() {
this.value = this.value.replace(/\D/g, '')
})