Update firewall.js

This commit is contained in:
Mr Chen
2019-01-27 16:17:24 +08:00
parent 9492d47a2a
commit cd8cfeb663
+3 -3
View File
@@ -68,10 +68,10 @@ function getSshInfo(){
$("#in_safe").html(SSHchecked);
$("#mstscPort").val(rdata.port);
var isPint = '';
if(!rdata.ping){
isPing = "<input class='btswitch btswitch-ios' id='noping' type='checkbox'><label class='btswitch-btn' for='noping' onclick='ping(0)'></label>";
if(rdata.ping){
isPing = "<input class='btswitch btswitch-ios' id='noping' type='checkbox'><label class='btswitch-btn' for='noping' onclick='ping(1)'></label>";
}else{
isPing = "<input class='btswitch btswitch-ios' id='noping' type='checkbox' checked><label class='btswitch-btn' for='noping' onclick='ping(1)'></label>";
isPing = "<input class='btswitch btswitch-ios' id='noping' type='checkbox' checked><label class='btswitch-btn' for='noping' onclick='ping(0)'></label>";
}
$("#is_ping").html(isPing);