mirror of
https://github.com/nextcloud/server.git
synced 2024-08-26 17:55:04 +02:00
Fixed problem about removing trusted servers accidentally
This commit is contained in:
parent
7dcc47dc94
commit
e0aaa21bd8
@ -17,10 +17,13 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#listOfTrustedServers li:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
#listOfTrustedServers .status {
|
#listOfTrustedServers .status {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#listOfTrustedServers .icon {
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
@ -56,10 +56,10 @@ $(document).ready(function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// remove trusted server from list
|
// remove trusted server from list
|
||||||
$( "#listOfTrustedServers" ).on('click', 'li', function() {
|
$( "#listOfTrustedServers" ).on('click', 'li > .icon-delete', function() {
|
||||||
var id = $(this).attr('id');
|
var id = $(this).parent().attr('id');
|
||||||
var $this = $(this);
|
var $this = $(this).parent();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: OC.generateUrl('/apps/federation/trusted-servers/' + id),
|
url: OC.generateUrl('/apps/federation/trusted-servers/' + id),
|
||||||
type: 'DELETE',
|
type: 'DELETE',
|
||||||
|
@ -23,7 +23,7 @@ style('federation', 'settings-admin')
|
|||||||
</p>
|
</p>
|
||||||
<ul id="listOfTrustedServers">
|
<ul id="listOfTrustedServers">
|
||||||
<?php foreach($_['trustedServers'] as $trustedServer) { ?>
|
<?php foreach($_['trustedServers'] as $trustedServer) { ?>
|
||||||
<li id="<?php p($trustedServer['id']); ?>" class="icon-delete">
|
<li id="<?php p($trustedServer['id']); ?>">
|
||||||
<?php if((int)$trustedServer['status'] === TrustedServers::STATUS_OK) { ?>
|
<?php if((int)$trustedServer['status'] === TrustedServers::STATUS_OK) { ?>
|
||||||
<span class="status success"></span>
|
<span class="status success"></span>
|
||||||
<?php
|
<?php
|
||||||
@ -36,6 +36,7 @@ style('federation', 'settings-admin')
|
|||||||
<span class="status error"></span>
|
<span class="status error"></span>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php p($trustedServer['url']); ?>
|
<?php p($trustedServer['url']); ?>
|
||||||
|
<span class="icon icon-delete"></span>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user