Commit 245cd9dd authored by 季圣华's avatar 季圣华
Browse files

修复公共js的bug

parent 4d613006
...@@ -57,10 +57,12 @@ ...@@ -57,10 +57,12 @@
} }
function dgResize() { function dgResize() {
var searchTabHeight = $('#searchTable').height(); var searchTabHeight = $('#searchTable').height();
$('#tableData').datagrid('resize', { if($('#tableData').length) {
width: $(window).width() - 6, $('#tableData').datagrid('resize', {
height: $(window).height() - searchTabHeight -46 width: $(window).width() - 6,
}); height: $(window).height() - searchTabHeight -46
});
}
} }
$(window).resize(function () { $(window).resize(function () {
dgResize(); dgResize();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment