isHexbin 十六进制校验
This commit is contained in:
@@ -347,7 +347,13 @@ $(function(){
|
||||
$("#serviceId").val($(this).attr("serviceId"));
|
||||
$("#protocolId").val($(this).attr("protocolId"));
|
||||
});
|
||||
|
||||
//选择hex cfgkeywords需校验十六进制
|
||||
$("select[name$='isHexbin']").each(function(){
|
||||
$(this).on("change",function(){
|
||||
addHexCheck(this,$(this).val());
|
||||
});
|
||||
addHexCheck(this,$(this).val());
|
||||
});
|
||||
// 校验搜索条件里的时间选框,不允许起始时间晚于终止时间
|
||||
$("#searchForm").validate({
|
||||
rules:{
|
||||
@@ -393,11 +399,19 @@ window.onload=function(){
|
||||
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) {
|
||||
var newIgHeight = $("#searchForm").find(".col-md-12").eq(0).height();
|
||||
alert(newIgHeight)
|
||||
$("#searchForm").find(".col-md-12").find(".pull-left").find(".input-group").find(".input-group-btn").css("padding-bottom", (newIgHeight-igHeight)+"px");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//选择hex cfgkeywords需校验十六进制
|
||||
var addHexCheck=function(obj,isHexbin){
|
||||
if(isHexbin == 1){ //十六进制
|
||||
$(obj).parent().parent().parent().parent().parent().parent().find("input[name$='cfgKeywords']").addClass("hexCheck");
|
||||
}else{
|
||||
$(obj).parent().parent().parent().parent().parent().parent().find("input[name$='cfgKeywords']").removeClass("hexCheck");
|
||||
}
|
||||
}
|
||||
//与表达式时,只允许为子串匹配
|
||||
var setDefaultMatchMethod=function (obj){
|
||||
var exprType = $(obj).val();
|
||||
|
||||
Reference in New Issue
Block a user