增加hex校验提示信息
This commit is contained in:
@@ -348,12 +348,12 @@ $(function(){
|
||||
$("#protocolId").val($(this).attr("protocolId"));
|
||||
});
|
||||
//选择hex cfgkeywords需校验十六进制
|
||||
/*$("select[name$='isHexbin']").each(function(){
|
||||
$("select[name$='isHexbin']").each(function(){
|
||||
$(this).on("change",function(){
|
||||
addHexCheck(this,$(this).val());
|
||||
});
|
||||
addHexCheck(this,$(this).val());
|
||||
});*/
|
||||
});
|
||||
// 校验搜索条件里的时间选框,不允许起始时间晚于终止时间
|
||||
$("#searchForm").validate({
|
||||
rules:{
|
||||
@@ -386,6 +386,15 @@ $(function(){
|
||||
},
|
||||
"doendDate": {
|
||||
compareDate: "[name=dobeginDate]"
|
||||
},
|
||||
"capIp":{
|
||||
ipv4v6:true
|
||||
},
|
||||
"sIp":{
|
||||
ipv4v6:true
|
||||
},
|
||||
"dIp":{
|
||||
ipv4v6:true
|
||||
}
|
||||
},
|
||||
submitHandler: function(form){
|
||||
@@ -395,6 +404,10 @@ $(function(){
|
||||
});
|
||||
});
|
||||
window.onload=function(){
|
||||
//日志查询IP类型增加格式提示
|
||||
$("#searchForm [name='capIp']").attr("placeholder","IPv4 0.0.0.0 or IPv6 ::");
|
||||
$("#searchForm [name='sIp']").attr("placeholder","IPv4 0.0.0.0 or IPv6 ::");
|
||||
$("#searchForm [name='dIp']").attr("placeholder","IPv4 0.0.0.0 or IPv6 ::");
|
||||
// 动态调整日志页搜索框的样式,防止validate的错误提示导致样式错乱
|
||||
var igHeight = $("#searchForm").find(".col-md-12").find(".pull-left").find(".input-group").height();
|
||||
$("#searchForm").find(".col-md-12").find(".pull-left").find(".input-group").bind("DOMNodeInserted",function(e) {
|
||||
|
||||
Reference in New Issue
Block a user