diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-20 11:17:13 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-10-21 09:09:26 +0200 |
commit | 103bf6dd287a70d48a8e47543873708056b7fe0f (patch) | |
tree | b6be6936b0514806473a75bdac6c63ae6f3465d7 /settings/js/admin.js | |
parent | 0b1fb180a53fc4e533e2f194977293bc509c5df3 (diff) | |
download | nextcloud-server-103bf6dd287a70d48a8e47543873708056b7fe0f.tar.gz nextcloud-server-103bf6dd287a70d48a8e47543873708056b7fe0f.zip |
Switch to public API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r-- | settings/js/admin.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js index 430947e5956..f5750b23790 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -24,7 +24,7 @@ $(document).ready(function(){ $(element).change(function(ev) { var groups = ev.val || []; groups = JSON.stringify(groups); - OC.AppConfig.setValue('core', $(this).attr('name'), groups); + OCP.AppConfig.setValue('core', $(this).attr('name'), groups); }); }); @@ -41,9 +41,9 @@ $(document).ready(function(){ if($(this).is(':checked')){ var mode = $(this).val(); if (mode === 'ajax' || mode === 'webcron' || mode === 'cron') { - OC.AppConfig.setValue('core', 'backgroundjobs_mode', mode); + OCP.AppConfig.setValue('core', 'backgroundjobs_mode', mode); // clear cron errors on background job mode change - OC.AppConfig.deleteKey('core', 'cronErrors'); + OCP.AppConfig.deleteKey('core', 'cronErrors'); } } }); @@ -59,7 +59,7 @@ $(document).ready(function(){ $('#reallyEnableEncryption').click(function() { $('#encryptionAPI div#EncryptionWarning').toggleClass('hidden'); $('#encryptionAPI div#EncryptionSettingsArea').toggleClass('hidden'); - OC.AppConfig.setValue('core', 'encryption_enabled', 'yes'); + OCP.AppConfig.setValue('core', 'encryption_enabled', 'yes'); $('#enableEncryption').attr('disabled', 'disabled'); }); @@ -99,7 +99,7 @@ $(document).ready(function(){ value = 'no'; } } - OC.AppConfig.setValue('core', $(this).attr('name'), value); + OCP.AppConfig.setValue('core', $(this).attr('name'), value); }); $('#shareapiDefaultExpireDate').change(function() { |