Commit a0269079035ee491a300093683f0654dfd6b2094

Authored by 王言钊
1 parent a124a56e

修复白名单搜索框回车错误

src/main/resources/templates/page/site.html
... ... @@ -66,10 +66,10 @@
66 66 </div>
67 67 </div>
68 68 <div class="pull-right search">
69   - <form id="searchForm">
  69 + <!--<form id="searchForm">-->
70 70 <input class="form-control" type="text" placeholder="搜索" id="keyword"
71 71 name="keyword" th:value="${param.keyword}">
72   - </form>
  72 + <!-- </form> -->
73 73 </div>
74 74 </div>
75 75 <div class="fixed-table-container" style="padding-bottom: 0px;">
... ... @@ -309,6 +309,12 @@
309 309 var pageSize = $("#pageSize").val();
310 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 319 </script>
314 320  
... ...