mirror of
https://github.com/gusaul/grpcox.git
synced 2025-02-26 09:25:37 +00:00
gimmick close connection
This commit is contained in:
parent
45be92dabd
commit
a609d49a38
|
@ -196,6 +196,7 @@ function hide_loading() {
|
|||
}
|
||||
|
||||
$(".connections ul").on("click", "i", function(){
|
||||
$icon = $(this);
|
||||
$parent = $(this).parent("li");
|
||||
var ip = $(this).siblings("span").text();
|
||||
|
||||
|
@ -204,15 +205,15 @@ $(".connections ul").on("click", "i", function(){
|
|||
global: true,
|
||||
method: "DELETE",
|
||||
success: function(res){
|
||||
$('[data-toggle="tooltip"]').tooltip('hide');
|
||||
if(res.data.success) {
|
||||
$parent.remove();
|
||||
updateCountNum();
|
||||
}
|
||||
$('[data-toggle="tooltip"]').tooltip('hide');
|
||||
},
|
||||
error: err,
|
||||
beforeSend: function(xhr){
|
||||
$(this).attr("class", "fa fa-spinner");
|
||||
$icon.attr('class', 'fa fa-spinner');
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user