Team 4 (Mother Forum ) Edit button
Specific Folder FTP Upload / ftp-deploy (push) Successful in 45s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 45s
Details
This commit is contained in:
parent
446a15061d
commit
5302263349
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue