From fbc2dc74dae25368d1c6019cbee7fb235d8052d9 Mon Sep 17 00:00:00 2001 From: gusaul Date: Thu, 14 Mar 2019 08:58:11 +0700 Subject: [PATCH] allow force restart conn from same connected host --- index/js/style.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/index/js/style.js b/index/js/style.js index 73cefbb..85b01b2 100644 --- a/index/js/style.js +++ b/index/js/style.js @@ -2,18 +2,19 @@ var target, use_tls, editor; $('#get-services').click(function(){ var t = get_valid_target(); - if (target != t) { - target = t; - use_tls = "false"; - } else { - return false; - } + use_tls = "false"; var restart = "0" if($('#restart-conn').is(":checked")) { restart = "1" } - + + if (target != t || restart == "1") { + target = t; + } else { + return false; + } + $('.other-elem').hide(); var button = $(this).html(); $.ajax({