Fix: press enter to search
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function() {
|
||||
$("#search_name").keydown(function(key) {
|
||||
if(key.keyCode == 13) {
|
||||
searchPlayer();
|
||||
}
|
||||
});
|
||||
|
||||
$("input[id=search_name]").keydown(function(key) {
|
||||
if(key.keyCode == 13)
|
||||
searchPlayer();
|
||||
});
|
||||
|
||||
searchPlayerListManager = new PlayerListManager(
|
||||
$("#search_player_list"),
|
||||
// $(".pagination")
|
||||
@@ -29,7 +40,7 @@ function searchPlayer() {
|
||||
<div class="col-5">
|
||||
<h5 class="my-3">학생 검색</h5>
|
||||
|
||||
<form class="mx-2">
|
||||
<form class="mx-2" onsubmit="return false">
|
||||
<div class="form-group row">
|
||||
<label for="search_name" class="col-sm-3 col-form-label">이름</label>
|
||||
<div class="col-sm-9">
|
||||
|
||||
Reference in New Issue
Block a user