列表页面回车键搜索
This commit is contained in:
parent
a1d9354de7
commit
7c2ab47429
|
|
@ -1361,3 +1361,15 @@ modal_status = {
|
||||||
FAIL: "error",
|
FAIL: "error",
|
||||||
WARNING: "warning"
|
WARNING: "warning"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
document.onkeydown = function (event) {
|
||||||
|
var e = event ? event : (window.event ? window.event : null);
|
||||||
|
if (e.keyCode === 13) {
|
||||||
|
var hasTable = document.getElementById("bootstrap-table");
|
||||||
|
if (hasTable == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
$.table.search();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue