Merge branch 'develop' of http://192.168.10.125/k18_web/NFS.git into develop
This commit is contained in:
@@ -9,6 +9,26 @@ $(function(){
|
||||
/* $("#cancel").on("click",function(){
|
||||
window.history.back();
|
||||
});*/
|
||||
var ddosProtocol=$("#antiddosProtocol").val();
|
||||
if(ddosProtocol==null||ddosProtocol==""){
|
||||
$("#bpsThreadshold").attr("disabled","true");
|
||||
$("#ppsThreadshold").attr("disabled","true");
|
||||
}
|
||||
$("#antiddosProtocol").on("change",function(){
|
||||
var ddosProtocol=$("#antiddosProtocol").val();
|
||||
if(ddosProtocol==null||ddosProtocol==""){
|
||||
$("#bpsThreadshold").attr("disabled","true");
|
||||
$("#ppsThreadshold").attr("disabled","true");
|
||||
$("#bpsThreadshold").val("");
|
||||
$("#bpsThreadshold").attr("placeholder","Bit Per Second");
|
||||
$("#ppsThreadshold").val("");
|
||||
$("#ppsThreadshold").attr("placeholder","Packet Per Second");
|
||||
}else{
|
||||
$("#bpsThreadshold").removeAttr("disabled");
|
||||
$("#ppsThreadshold").removeAttr("disabled");
|
||||
}
|
||||
})
|
||||
|
||||
$(".action").on("change", function() {
|
||||
$("#serviceId").val($(this).attr("serviceId"));
|
||||
$("#protocolId").val($(this).attr("protocolId"));
|
||||
|
||||
Reference in New Issue
Block a user