修复配置页搜索栏高度异常的问题

This commit is contained in:
chenjinsong
2018-08-06 15:17:19 +08:00
parent a4b16f4043
commit c247fd8ed9

View File

@@ -387,14 +387,17 @@ $(function(){
form.submit();
}
});
// 动态调整日志
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();
$("#searchForm").find(".col-md-12").find(".pull-left").find(".input-group").find(".input-group-btn").css("padding-bottom", (newIgHeight-igHeight)+"px");
});
});
window.onload=function(){
// 动态调整日志页搜索框的样式防止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) {
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");
});
}
//与表达式时,只允许为子串匹配
var setDefaultMatchMethod=function (obj){
var exprType = $(obj).val();