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 /apps | |
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 'apps')
-rw-r--r-- | apps/federatedfilesharing/js/settings-admin.js | 2 | ||||
-rw-r--r-- | apps/files_external/js/settings.js | 6 | ||||
-rw-r--r-- | apps/updatenotification/js/admin.js | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/federatedfilesharing/js/settings-admin.js b/apps/federatedfilesharing/js/settings-admin.js index 257c864b04f..a0b8feb945e 100644 --- a/apps/federatedfilesharing/js/settings-admin.js +++ b/apps/federatedfilesharing/js/settings-admin.js @@ -5,7 +5,7 @@ $(document).ready(function() { if (this.checked) { value = 'yes'; } - OC.AppConfig.setValue('files_sharing', $(this).attr('name'), value); + OCP.AppConfig.setValue('files_sharing', $(this).attr('name'), value); }); }); diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index da3e2397b7e..0270b7a6957 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -1317,12 +1317,12 @@ $(document).ready(function() { $allowUserMounting.bind('change', function() { OC.msg.startSaving('#userMountingMsg'); if (this.checked) { - OC.AppConfig.setValue('files_external', 'allow_user_mounting', 'yes'); + OCP.AppConfig.setValue('files_external', 'allow_user_mounting', 'yes'); $('input[name="allowUserMountingBackends\\[\\]"]').prop('checked', true); $('#userMountingBackends').removeClass('hidden'); $('input[name="allowUserMountingBackends\\[\\]"]').eq(0).trigger('change'); } else { - OC.AppConfig.setValue('files_external', 'allow_user_mounting', 'no'); + OCP.AppConfig.setValue('files_external', 'allow_user_mounting', 'no'); $('#userMountingBackends').addClass('hidden'); } OC.msg.finishedSaving('#userMountingMsg', {status: 'success', data: {message: t('files_external', 'Saved')}}); @@ -1342,7 +1342,7 @@ $(document).ready(function() { }).get(); userMountingBackends = userMountingBackends.concat(deprecatedBackends); - OC.AppConfig.setValue('files_external', 'user_mounting_backends', userMountingBackends.join()); + OCP.AppConfig.setValue('files_external', 'user_mounting_backends', userMountingBackends.join()); OC.msg.finishedSaving('#userMountingMsg', {status: 'success', data: {message: t('files_external', 'Saved')}}); // disable allowUserMounting diff --git a/apps/updatenotification/js/admin.js b/apps/updatenotification/js/admin.js index 91d9f80b605..813ec48c87a 100644 --- a/apps/updatenotification/js/admin.js +++ b/apps/updatenotification/js/admin.js @@ -70,6 +70,6 @@ $(document).ready(function(){ $notificationTargetGroups.change(function(ev) { var groups = ev.val || []; groups = JSON.stringify(groups); - OC.AppConfig.setValue('updatenotification', 'notify_groups', groups); + OCP.AppConfig.setValue('updatenotification', 'notify_groups', groups); }); }); |