Commit a0269079035ee491a300093683f0654dfd6b2094
1 parent
a124a56e
修复白名单搜索框回车错误
Showing
1 changed file
with
8 additions
and
2 deletions
src/main/resources/templates/page/site.html
| @@ -66,10 +66,10 @@ | @@ -66,10 +66,10 @@ | ||
| 66 | </div> | 66 | </div> |
| 67 | </div> | 67 | </div> |
| 68 | <div class="pull-right search"> | 68 | <div class="pull-right search"> |
| 69 | - <form id="searchForm"> | 69 | + <!--<form id="searchForm">--> |
| 70 | <input class="form-control" type="text" placeholder="搜索" id="keyword" | 70 | <input class="form-control" type="text" placeholder="搜索" id="keyword" |
| 71 | name="keyword" th:value="${param.keyword}"> | 71 | name="keyword" th:value="${param.keyword}"> |
| 72 | - </form> | 72 | + <!-- </form> --> |
| 73 | </div> | 73 | </div> |
| 74 | </div> | 74 | </div> |
| 75 | <div class="fixed-table-container" style="padding-bottom: 0px;"> | 75 | <div class="fixed-table-container" style="padding-bottom: 0px;"> |
| @@ -309,6 +309,12 @@ | @@ -309,6 +309,12 @@ | ||
| 309 | var pageSize = $("#pageSize").val(); | 309 | var pageSize = $("#pageSize").val(); |
| 310 | window.location.href = "/sites/page?keyword=" + keyword + "&page=" + 1 + "&pageSize=" + pageSize; | 310 | window.location.href = "/sites/page?keyword=" + keyword + "&page=" + 1 + "&pageSize=" + pageSize; |
| 311 | }); | 311 | }); |
| 312 | + //鼠标回车事件 | ||
| 313 | + $(document).keyup(function (event) { | ||
| 314 | + if (event.keyCode == 13) { | ||
| 315 | + $("#site_query").trigger("click"); | ||
| 316 | + } | ||
| 317 | + }); | ||
| 312 | 318 | ||
| 313 | </script> | 319 | </script> |
| 314 | 320 |