diff options
author | Sergio Bertolín <sbertolin@solidgear.es> | 2016-06-08 09:02:05 +0000 |
---|---|---|
committer | Sergio Bertolín <sbertolin@solidgear.es> | 2016-06-08 09:02:05 +0000 |
commit | e0aaa21bd8f9e726a5ffe2142116fc0e036cfff5 (patch) | |
tree | 1a8e86dffd8f76e3f64a9e94b9645ed1b15c6758 /apps/federation/js/settings-admin.js | |
parent | 7dcc47dc94c2db2e1968b9a5bdcab694d1b78dbb (diff) | |
download | nextcloud-server-e0aaa21bd8f9e726a5ffe2142116fc0e036cfff5.tar.gz nextcloud-server-e0aaa21bd8f9e726a5ffe2142116fc0e036cfff5.zip |
Fixed problem about removing trusted servers accidentally
Diffstat (limited to 'apps/federation/js/settings-admin.js')
-rw-r--r-- | apps/federation/js/settings-admin.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/federation/js/settings-admin.js b/apps/federation/js/settings-admin.js index 7d531b39d8c..a903cb15305 100644 --- a/apps/federation/js/settings-admin.js +++ b/apps/federation/js/settings-admin.js @@ -56,10 +56,10 @@ $(document).ready(function () { } }); - // remove trusted server from list - $( "#listOfTrustedServers" ).on('click', 'li', function() { - var id = $(this).attr('id'); - var $this = $(this); +// remove trusted server from list + $( "#listOfTrustedServers" ).on('click', 'li > .icon-delete', function() { + var id = $(this).parent().attr('id'); + var $this = $(this).parent(); $.ajax({ url: OC.generateUrl('/apps/federation/trusted-servers/' + id), type: 'DELETE', |