Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-20 12:17:13 +0300
committerJoas Schilling <coding@schilljs.com>2016-10-21 10:09:26 +0300
commit103bf6dd287a70d48a8e47543873708056b7fe0f (patch)
treeb6be6936b0514806473a75bdac6c63ae6f3465d7 /apps
parent0b1fb180a53fc4e533e2f194977293bc509c5df3 (diff)
Switch to public API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/js/settings-admin.js2
-rw-r--r--apps/files_external/js/settings.js6
-rw-r--r--apps/updatenotification/js/admin.js2
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);
});
});