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/files_external/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 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/settings.js | 6 |
1 files changed, 3 insertions, 3 deletions
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 |