mirror of
https://github.com/gusaul/grpcox.git
synced 2025-02-26 17:35:36 +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(){
|
$(".connections ul").on("click", "i", function(){
|
||||||
|
$icon = $(this);
|
||||||
$parent = $(this).parent("li");
|
$parent = $(this).parent("li");
|
||||||
var ip = $(this).siblings("span").text();
|
var ip = $(this).siblings("span").text();
|
||||||
|
|
||||||
|
@ -204,15 +205,15 @@ $(".connections ul").on("click", "i", function(){
|
||||||
global: true,
|
global: true,
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
success: function(res){
|
success: function(res){
|
||||||
|
$('[data-toggle="tooltip"]').tooltip('hide');
|
||||||
if(res.data.success) {
|
if(res.data.success) {
|
||||||
$parent.remove();
|
$parent.remove();
|
||||||
updateCountNum();
|
updateCountNum();
|
||||||
}
|
}
|
||||||
$('[data-toggle="tooltip"]').tooltip('hide');
|
|
||||||
},
|
},
|
||||||
error: err,
|
error: err,
|
||||||
beforeSend: function(xhr){
|
beforeSend: function(xhr){
|
||||||
$(this).attr("class", "fa fa-spinner");
|
$icon.attr('class', 'fa fa-spinner');
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user