diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-04-27 08:06:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 08:06:59 +0200 |
commit | 3f0b7fd289bf6fd9a9200c63160d1133618b2583 (patch) | |
tree | 29720894bd44b5fcf9e83c4d91042e30746a2e7a /apps/federation/js/settings-admin.js | |
parent | b8cde2c8b6d9f4cee3289158bea4dda02b66e63c (diff) | |
parent | 71e05b1fd3a41644037c24925aca5c83de39cf14 (diff) | |
download | nextcloud-server-3f0b7fd289bf6fd9a9200c63160d1133618b2583.tar.gz nextcloud-server-3f0b7fd289bf6fd9a9200c63160d1133618b2583.zip |
Merge pull request #26765 from nextcloud/td/no_more_add_auto_trusted
No longer add trusted servers on federated share creation
Diffstat (limited to 'apps/federation/js/settings-admin.js')
-rw-r--r-- | apps/federation/js/settings-admin.js | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/apps/federation/js/settings-admin.js b/apps/federation/js/settings-admin.js index 251ea4c4a34..d8ec194dcda 100644 --- a/apps/federation/js/settings-admin.js +++ b/apps/federation/js/settings-admin.js @@ -19,7 +19,7 @@ */ (function( $ ) { - + // ocFederationAddServer $.fn.ocFederationAddServer = function() { @@ -27,14 +27,13 @@ ========================================================================== */ var $wrapper = $(this), - + // Buttons $btnAddServer = $wrapper.find("#ocFederationAddServerButton"), $btnSubmit = $wrapper.find("#ocFederationSubmit"), - + // Inputs $inpServerUrl = $wrapper.find("#serverUrl"), - $inpAutoAddServers = $wrapper.find("#autoAddServers"), // misc $msgBox = $wrapper.find("#ocFederationAddServer .msg"), @@ -55,17 +54,8 @@ $srvList.on('click', 'li > .icon-delete', function() { var $this = $(this).parent(); var id = $this.attr('id'); - - removeServer( id ); - }); - $inpAutoAddServers.on("change", function() { - $.post( - OC.generateUrl('/apps/federation/auto-add-servers'), - { - autoAddServers: $(this).is(":checked") - } - ); + removeServer( id ); }); $btnSubmit.on("click", function() @@ -94,7 +84,7 @@ } }); }; - + /* private Functions ========================================================================== */ @@ -132,11 +122,11 @@ }); } - + })( jQuery ); window.addEventListener('DOMContentLoaded', function () { $('#ocFederationSettings').ocFederationAddServer(); - + }); |