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

This commit is contained in:
jisangs committed 2018-09-13 15:28:47 +09:00
1 parent e8c7304dba
commit bccee696d4
9 files changed
+68 -68

No files matched your search

+4 -4
View File
@@ -27,14 +27,14 @@ function login() {
"./../server/maestro/login.php",
"maestro_name=" + name + "&password=" + password,
(jsonData) => {
(function(jsonData) {
sessionStorage.setItem("maestroID", jsonData["maestroID"]);
sessionStorage.setItem("maestroAccountType", jsonData["maestroAccountType"]);
location.href = './../maestro/main_menu.html';
},
}),
(errorMessage, errorCode) => {
(function(errorMessage, errorCode) {
console.log("errorCode : " + errorCode);
let errorType = "error";
@@ -51,7 +51,7 @@ function login() {
}
showErrorMessage(errorMessage, errorType);
}
})
);
}