aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federation/js/settings-admin.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-04-26 15:52:06 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2021-04-26 19:47:55 +0200
commit71e05b1fd3a41644037c24925aca5c83de39cf14 (patch)
treeb4724a22000bd58557b68f2c1c04c4ab32ddd1df /apps/federation/js/settings-admin.js
parentaa651fd629534e96432492c1a74e979b28222ce2 (diff)
downloadnextcloud-server-71e05b1fd3a41644037c24925aca5c83de39cf14.tar.gz
nextcloud-server-71e05b1fd3a41644037c24925aca5c83de39cf14.zip
No longer add trusted servers on federated share creation
It was disabled by default for ages. And often resulted in unwanted behavior. If admins want trusted servers they just have to do it manually. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/federation/js/settings-admin.js')
-rw-r--r--apps/federation/js/settings-admin.js24
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();
-
+
});