Team 3 (Levoswitch Enrollment) Error Message
Specific Folder FTP Upload / ftp-deploy (push) Successful in 47s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 47s
Details
This commit is contained in:
parent
40cea63b87
commit
2aebcd2eb1
|
|
@ -493,7 +493,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(document).on('change', 'select[id^="field-contact_id"]', function () {
|
/* $(document).on('change', 'select[id^="field-contact_id"]', function () {
|
||||||
|
|
||||||
let selectedOption = $(this).find(':selected');
|
let selectedOption = $(this).find(':selected');
|
||||||
|
|
||||||
|
|
@ -503,6 +503,28 @@
|
||||||
$('#field-pcode-' + id).val(selectedOption.attr('msl_code'));
|
$('#field-pcode-' + id).val(selectedOption.attr('msl_code'));
|
||||||
$('#field-speciality-' + id).val(selectedOption.attr('speciality'));
|
$('#field-speciality-' + id).val(selectedOption.attr('speciality'));
|
||||||
|
|
||||||
|
preventDuplicateDoctors();
|
||||||
|
}); */
|
||||||
|
|
||||||
|
$(document).on('change', 'select[id^="field-contact_id"]', function () {
|
||||||
|
|
||||||
|
let selectedOption = $(this).find(':selected');
|
||||||
|
let wrapper = $(this).closest('.doctor-wrapper');
|
||||||
|
|
||||||
|
let id = $(this).attr('id');
|
||||||
|
|
||||||
|
if (id === 'field-contact_id') {
|
||||||
|
wrapper.find('#field-msl_code').val(selectedOption.attr('legacy_code'));
|
||||||
|
wrapper.find('#field-pcode').val(selectedOption.attr('msl_code'));
|
||||||
|
wrapper.find('#field-speciality').val(selectedOption.attr('speciality'));
|
||||||
|
} else {
|
||||||
|
let index = id.split('-').pop();
|
||||||
|
|
||||||
|
$('#field-msl_code-' + index).val(selectedOption.attr('legacy_code'));
|
||||||
|
$('#field-pcode-' + index).val(selectedOption.attr('msl_code'));
|
||||||
|
$('#field-speciality-' + index).val(selectedOption.attr('speciality'));
|
||||||
|
}
|
||||||
|
|
||||||
preventDuplicateDoctors();
|
preventDuplicateDoctors();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -725,9 +747,15 @@
|
||||||
$("#pageloader").fadeOut();
|
$("#pageloader").fadeOut();
|
||||||
|
|
||||||
console.log("HTTP Status:", xhr.status);
|
console.log("HTTP Status:", xhr.status);
|
||||||
|
console.log("Status:", status);
|
||||||
console.log("Error:", error);
|
console.log("Error:", error);
|
||||||
console.log("Response:", xhr.responseText);
|
console.log("Response:", xhr.responseText);
|
||||||
|
|
||||||
|
Swal.fire({
|
||||||
|
icon: 'error',
|
||||||
|
title: 'Server Error',
|
||||||
|
text: xhr.responseJSON?.message || error
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue