取消回车自动提交表单

This commit is contained in:
RuoYi
2020-04-28 22:26:08 +08:00
parent cb32d5cc90
commit 27f40d0357
3 changed files with 9 additions and 3 deletions

View File

@ -53,6 +53,11 @@ $(function() {
if (!$(".popover:hover").length) $(_this).popover("hide");
}, 100);
});
// 取消回车自动提交表单
$(document).on("keypress", "form", function(event) {
return event.keyCode != 13;
});
// laydate 时间控件绑定
if ($(".select-time").length > 0) {