|
@@ -2,6 +2,7 @@ checkRoute();
|
|
|
|
|
|
let userBasics = JSON.parse(localStorage.getItem('user_profile')) || [];
|
|
let userBasics = JSON.parse(localStorage.getItem('user_profile')) || [];
|
|
|
|
|
|
|
|
+$('.loading').hide();
|
|
|
|
|
|
//userBasics = JSON.parse(userBasics);
|
|
//userBasics = JSON.parse(userBasics);
|
|
if(userBasics.length > 0 || typeof(userBasics) !== 'string'){
|
|
if(userBasics.length > 0 || typeof(userBasics) !== 'string'){
|
|
@@ -279,8 +280,9 @@ function deleteDraft(id) {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
-// Upload
|
|
|
|
|
|
+// Make eng video
|
|
$(".next").click(function () {
|
|
$(".next").click(function () {
|
|
|
|
+ $('.loading').show();
|
|
button.setAttribute('disabled', '');
|
|
button.setAttribute('disabled', '');
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
button.removeAttribute('disabled')
|
|
button.removeAttribute('disabled')
|
|
@@ -320,6 +322,7 @@ $(".next").click(function () {
|
|
xhr.setRequestHeader("Content-Type", "application/json");
|
|
xhr.setRequestHeader("Content-Type", "application/json");
|
|
xhr.onreadystatechange = function () {
|
|
xhr.onreadystatechange = function () {
|
|
if (xhr.readyState === 4) {
|
|
if (xhr.readyState === 4) {
|
|
|
|
+ $('.loading').hide();
|
|
responseOBJ = JSON.parse(xhr.responseText);
|
|
responseOBJ = JSON.parse(xhr.responseText);
|
|
console.log(responseOBJ);
|
|
console.log(responseOBJ);
|
|
Swal.fire({
|
|
Swal.fire({
|
|
@@ -327,6 +330,8 @@ $(".next").click(function () {
|
|
text: responseOBJ.msg.eng,
|
|
text: responseOBJ.msg.eng,
|
|
confirmButtonColor: '#3085d6',
|
|
confirmButtonColor: '#3085d6',
|
|
});
|
|
});
|
|
|
|
+ } else {
|
|
|
|
+ $('.loading').hide();
|
|
}
|
|
}
|
|
};
|
|
};
|
|
var data = renderXHR_data(dataOBJ)
|
|
var data = renderXHR_data(dataOBJ)
|