Fix: () => { } -> function() { }

This commit is contained in:
2018-09-13 15:28:47 +09:00
parent e8c7304dba
commit bccee696d4
9 changed files with 68 additions and 68 deletions
+8 -8
View File
@@ -5,18 +5,18 @@ function loadMaestroTestAccountInfo() {
"./../server/maestro/maestro_test_player.php",
"maestro_id=" + maestroID,
(jsonData) => {
(function(jsonData) {
// console.log("playerID : " + jsonData["playerID"]);
// console.log("playerName : " + jsonData["playerName"]);
sessionStorage.setItem("playerID", jsonData["playerID"]);
sessionStorage.setItem("playerName", jsonData["playerName"]);
},
}),
(errorMessage, errorCode) => {
(function(errorMessage, errorCode) {
if($("#error_message").length) {
$("#error_message").text(errorMessage);
}
}
})
);
}
@@ -33,15 +33,15 @@ function deleteMaestroAllRecords() {
"./../server/maestro/delete_test_player_record.php",
"maestro_id=" + maestroID,
(jsonData) => {
(function(jsonData) {
alert("마에스트로 전용 계정의 모든 플레이 기록이 지워졌습니다.");
},
}),
(errorMessage, errorCode) => {
(function(errorMessage, errorCode) {
if($("#error_message").length) {
$("#error_message").text(errorMessage);
}
}
})
);
} else {