Pre Merge pull request !122 from lnrCoder/master

This commit is contained in:
lnrCoder 2021-03-07 12:28:45 +08:00 committed by Gitee
commit 3d872f7e51
1 changed files with 12 additions and 0 deletions

View File

@ -1680,3 +1680,15 @@ modal_status = {
FAIL: "error",
WARNING: "warning"
};
document.onkeydown = function (event) {
var e = e || window.event;
if (e.keyCode === 13) {
var hasTable = document.getElementById("bootstrap-table");
if (hasTable == null) {
return true;
}
$.table.search();
return false;
}
};