Commit d318653daa8a791de7c4caf29ddec874b936f2ad
1 parent
aea3e6bd
1、登录页添加回车交互
2、系统设置添加模版设置
Showing
2 changed files
with
12 additions
and
0 deletions
WebRoot/WEB-INF/jsp/sunvote/admin/admin_main.jsp
WebRoot/WEB-INF/jsp/system/index/login.jsp
@@ -78,6 +78,15 @@ | @@ -78,6 +78,15 @@ | ||
78 | if(window.top != window.self){ | 78 | if(window.top != window.self){ |
79 | window.top.location.href = "<%=basePath%>"; | 79 | window.top.location.href = "<%=basePath%>"; |
80 | } | 80 | } |
81 | + | ||
82 | + document.onkeydown = function (e) { // 回车提交表单 | ||
83 | + // 兼容FF和IE和Opera | ||
84 | + var theEvent = window.event || e; | ||
85 | + var code = theEvent.keyCode || theEvent.which || theEvent.charCode; | ||
86 | + if (code == 13) { | ||
87 | + severCheck(); | ||
88 | + } | ||
89 | + } | ||
81 | //客户端校验 | 90 | //客户端校验 |
82 | function check() { | 91 | function check() { |
83 | 92 |