summaryrefslogtreecommitdiffstats
path: root/apps/federation/js/settings-admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federation/js/settings-admin.js')
-rw-r--r--apps/federation/js/settings-admin.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/federation/js/settings-admin.js b/apps/federation/js/settings-admin.js
index 1bc7a8cc0aa..7d531b39d8c 100644
--- a/apps/federation/js/settings-admin.js
+++ b/apps/federation/js/settings-admin.js
@@ -70,4 +70,13 @@ $(document).ready(function () {
});
+ $("#ocFederationSettings #autoAddServers").change(function() {
+ $.post(
+ OC.generateUrl('/apps/federation/auto-add-servers'),
+ {
+ autoAddServers: $(this).is(":checked")
+ }
+ );
+ });
+
});