mirror of
https://github.com/gusaul/grpcox.git
synced 2024-12-26 02:40:10 +00:00
allow force restart conn from same connected host
This commit is contained in:
parent
cd19b9523b
commit
fbc2dc74da
|
@ -2,18 +2,19 @@ var target, use_tls, editor;
|
||||||
|
|
||||||
$('#get-services').click(function(){
|
$('#get-services').click(function(){
|
||||||
var t = get_valid_target();
|
var t = get_valid_target();
|
||||||
if (target != t) {
|
|
||||||
target = t;
|
|
||||||
use_tls = "false";
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
use_tls = "false";
|
||||||
var restart = "0"
|
var restart = "0"
|
||||||
if($('#restart-conn').is(":checked")) {
|
if($('#restart-conn').is(":checked")) {
|
||||||
restart = "1"
|
restart = "1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target != t || restart == "1") {
|
||||||
|
target = t;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$('.other-elem').hide();
|
$('.other-elem').hide();
|
||||||
var button = $(this).html();
|
var button = $(this).html();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user