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 | |
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')
-rw-r--r-- | settings/js/admin.js | 10 | ||||
-rw-r--r-- | settings/js/users/users.js | 20 |
2 files changed, 15 insertions, 15 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() { diff --git a/settings/js/users/users.js b/settings/js/users/users.js index d25f9d92db2..3a357c0e9c4 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -875,10 +875,10 @@ $(document).ready(function () { $('#CheckboxStorageLocation').click(function() { if ($('#CheckboxStorageLocation').is(':checked')) { $("#userlist .storageLocation").show(); - OC.AppConfig.setValue('core', 'umgmt_show_storage_location', 'true'); + OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'true'); } else { $("#userlist .storageLocation").hide(); - OC.AppConfig.setValue('core', 'umgmt_show_storage_location', 'false'); + OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'false'); } }); @@ -889,10 +889,10 @@ $(document).ready(function () { $('#CheckboxLastLogin').click(function() { if ($('#CheckboxLastLogin').is(':checked')) { $("#userlist .lastLogin").show(); - OC.AppConfig.setValue('core', 'umgmt_show_last_login', 'true'); + OCP.AppConfig.setValue('core', 'umgmt_show_last_login', 'true'); } else { $("#userlist .lastLogin").hide(); - OC.AppConfig.setValue('core', 'umgmt_show_last_login', 'false'); + OCP.AppConfig.setValue('core', 'umgmt_show_last_login', 'false'); } }); @@ -903,10 +903,10 @@ $(document).ready(function () { $('#CheckboxEmailAddress').click(function() { if ($('#CheckboxEmailAddress').is(':checked')) { $("#userlist .mailAddress").show(); - OC.AppConfig.setValue('core', 'umgmt_show_email', 'true'); + OCP.AppConfig.setValue('core', 'umgmt_show_email', 'true'); } else { $("#userlist .mailAddress").hide(); - OC.AppConfig.setValue('core', 'umgmt_show_email', 'false'); + OCP.AppConfig.setValue('core', 'umgmt_show_email', 'false'); } }); @@ -917,10 +917,10 @@ $(document).ready(function () { $('#CheckboxUserBackend').click(function() { if ($('#CheckboxUserBackend').is(':checked')) { $("#userlist .userBackend").show(); - OC.AppConfig.setValue('core', 'umgmt_show_backend', 'true'); + OCP.AppConfig.setValue('core', 'umgmt_show_backend', 'true'); } else { $("#userlist .userBackend").hide(); - OC.AppConfig.setValue('core', 'umgmt_show_backend', 'false'); + OCP.AppConfig.setValue('core', 'umgmt_show_backend', 'false'); } }); @@ -931,10 +931,10 @@ $(document).ready(function () { $('#CheckboxMailOnUserCreate').click(function() { if ($('#CheckboxMailOnUserCreate').is(':checked')) { $("#newemail").show(); - OC.AppConfig.setValue('core', 'umgmt_send_email', 'true'); + OCP.AppConfig.setValue('core', 'umgmt_send_email', 'true'); } else { $("#newemail").hide(); - OC.AppConfig.setValue('core', 'umgmt_send_email', 'false'); + OCP.AppConfig.setValue('core', 'umgmt_send_email', 'false'); } }); |