Add: check player name, enterCode before add player

This commit is contained in:
2018-07-19 16:39:07 +09:00
parent c8b1e15447
commit 54b8bdb3a2
8 changed files with 163 additions and 51 deletions
@@ -5,18 +5,13 @@ $(document).ready(function() {
$("#search_player_list"),
$("#search_player_list_navigator > #page_no_area")
);
// searchPlayerListManager.setupSearchPlayerList("");
console.log("search - ready");
});
function searchPlayer() {
// let maestroID = sessionStorage.getItem("maestroID");
let playerName = $("#search_name").val();
if(playerName.length === 0) {
// $("#search_name_notice").val("학생 이름을 입력하세요.");
$("#search_name").focus();
return;
}
@@ -34,15 +29,6 @@ function searchPlayer() {
<input type="text" id="search_name"><input type="submit" name="찾기" onClick="searchPlayer()"><br/>
<br/>
<!--
<h3>검색 결과</h3>
학생 이름
<input type="text" id="result_name"><button>삭제</button><br/>
입장 코드
<input type="text" id="result_entercode"><button>수정</button>
-->
</span>
<span id="search_result">