|
@@ -124,7 +124,7 @@ $(".next").click(function () {
|
|
|
button.setAttribute('disabled', '');
|
|
|
setTimeout(function () {
|
|
|
button.removeAttribute('disabled')
|
|
|
- }, 6000);
|
|
|
+ }, 10000);
|
|
|
avatar = $('.avatar').val();
|
|
|
name_title = $('.title_new').val();
|
|
|
txtARR = [];
|
|
@@ -156,35 +156,21 @@ $(".next").click(function () {
|
|
|
xhr.onreadystatechange = function () {
|
|
|
if (xhr.readyState === 4) {
|
|
|
responseOBJ = JSON.parse(xhr.responseText)
|
|
|
- if (responseOBJ.msg=='ok') {
|
|
|
- let title = "資料已送出";
|
|
|
- let text = '資料已傳送,請耐心等候';
|
|
|
- if (lang == 'en') { // 英文版訊息
|
|
|
- title = "Submitted Successfully!";
|
|
|
- text = 'We are working on your video. You will get notfication in line group when your video is done.';
|
|
|
- }
|
|
|
- Swal.fire({
|
|
|
- title: title,
|
|
|
- icon: 'success',
|
|
|
- text: text,
|
|
|
- confirmButtonColor: '#3085d6',
|
|
|
- });
|
|
|
- } else{
|
|
|
- let title = '發生錯誤';
|
|
|
+ console.log(responseOBJ.msg);
|
|
|
+ //let title = "資料已送出";
|
|
|
let text;
|
|
|
if(lang == 'en') {
|
|
|
- title = 'Error';
|
|
|
+ //title = 'Submitted Successfully!';
|
|
|
text = responseOBJ.msg.eng;
|
|
|
} else {
|
|
|
text = responseOBJ.msg.zh;
|
|
|
}
|
|
|
Swal.fire({
|
|
|
- title: title,
|
|
|
- icon: 'error',
|
|
|
+ // title: title,
|
|
|
+ icon: 'info',
|
|
|
text: text,
|
|
|
confirmButtonColor: '#3085d6',
|
|
|
});
|
|
|
- }
|
|
|
|
|
|
}
|
|
|
};
|