Team 4 (Mother Forum ) Edit button
Specific Folder FTP Upload / ftp-deploy (push) Successful in 45s Details

This commit is contained in:
zeeshan 2026-10-09 17:33:52 +05:30
parent 446a15061d
commit 5302263349
1 changed files with 10 additions and 0 deletions

View File

@ -265,6 +265,7 @@
$("[id^='field-contact_id']").each(function() {
var select = $(this);
// Clear previous options
var existingVal = select.val();
select.html('');
// Add a default 'Select' option
select.append(
@ -293,6 +294,11 @@
// - result: field-msl_code_1, field-speciality_1, etc.
// Remove any old event handlers first to prevent duplicate bindings
if (existingVal) {
select.val(existingVal);
}
select.off('change').on('change', function () {
var selected = $(this).find(':selected');
@ -316,6 +322,10 @@
enforceUniqueDoctorSelections();
});
if (existingVal) {
select.trigger('change');
}
// Ensure unique selection is enforced after initial render
enforceUniqueDoctorSelections();
});