Fix: () => { } -> function() { }
This commit is contained in:
1 parent
e8c7304dba
commit
bccee696d4
9 files changed
+68
-68
No files matched your search
@@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user