AFAIK: the last changes to v1 production, checked in several months later.
This commit is contained in:
parent
98d92d6946
commit
a68f2645a9
1 changed files with 7 additions and 3 deletions
|
|
@ -176,21 +176,25 @@
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
fetch('https://humananatomy3d.app/app/php/email/v1/SendSupportMailFromWebsite.php', { mode: 'no-cors' }, {
|
fetch('https://humananatomy3d.app/app/php/email/v1/SendSupportMailFromWebsite.php', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
//mode: 'no-cors',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
},
|
},
|
||||||
body: formBody,
|
body: formBody,
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
//console.log("response.status: " + response.status);
|
||||||
if(response.status === 200){
|
if(response.status === 200){
|
||||||
return response.json();
|
return response.text();
|
||||||
} else {
|
} else {
|
||||||
otherError.classList.add('form-alert--visible');
|
otherError.classList.add('form-alert--visible');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
//console.log("data:");
|
||||||
|
//console.log(data);
|
||||||
switch (data) {
|
switch (data) {
|
||||||
case "succesSendingSupportEmail":
|
case "succesSendingSupportEmail":
|
||||||
success.classList.add('form-alert--visible');
|
success.classList.add('form-alert--visible');
|
||||||
|
|
@ -209,7 +213,7 @@
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
console.log(data)
|
//console.log(data)
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue