diff options
author | Björn Schießle <bjoern@schiessle.org> | 2015-11-18 17:07:41 +0300 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-11-19 20:07:25 +0300 |
commit | 2754afc0747950591b3ddca37248d363c6ab64f3 (patch) | |
tree | 9bae88b29416ec6d9e3f58abdf26e98e0b7d42e8 /apps/federation/js | |
parent | 8f55b1a27d97f24751542b6dc44a89eb03387a75 (diff) |
add option to auto add servers to the list of trusted servers once a federated share was created and accepted successfully
Diffstat (limited to 'apps/federation/js')
-rw-r--r-- | apps/federation/js/settings-admin.js | 9 |
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") + } + ); + }); + }); |