Fix: () => { } -> function() { }
This commit is contained in:
@@ -12,15 +12,15 @@ function loadMaestroInfo(maestroID) {
|
||||
"./../server/maestro/maestro_info.php",
|
||||
"maestro_id=" + maestroID,
|
||||
|
||||
(jsonData) => {
|
||||
(function(jsonData) {
|
||||
// console.log(jsonData);
|
||||
registeredAccountType = jsonData.accountType;
|
||||
updateCards(registeredAccountType);
|
||||
},
|
||||
}),
|
||||
|
||||
(errorMessage, errorCode) => {
|
||||
(function(errorMessage, errorCode) {
|
||||
showErrorMessage(errorMessage, "error");
|
||||
}
|
||||
})
|
||||
|
||||
);
|
||||
}
|
||||
@@ -124,15 +124,15 @@ function upgradeMaestroInfo(accountType) {
|
||||
"./../server/maestro/request_upgrade_maestro.php",
|
||||
"maestro_id=" + maestroID + "®istered_account_type=" + registeredAccountType + "&new_account_type=" + newAccountType,
|
||||
|
||||
(jsonData) => {
|
||||
(function(jsonData) {
|
||||
// console.log(jsonData);
|
||||
alert("업그레이드 요청이 등록되었습니다.");
|
||||
location.href="main_menu.html";
|
||||
},
|
||||
}),
|
||||
|
||||
(errorMessage, errorCode) => {
|
||||
(function(errorMessage, errorCode) {
|
||||
showErrorMessage(errorMessage, "error");
|
||||
}
|
||||
})
|
||||
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user