Team2 - BF Educator Tagging Region Issue

This commit is contained in:
Ravi Gulhane 2026-05-29 17:00:37 +05:30
parent 5a1dd0d5f5
commit 1f68ed2ae2
1 changed files with 12 additions and 1 deletions

View File

@ -369,7 +369,7 @@
if (!region) return;
$.ajax({
url: "/form/team2bfedu",
url: "/form/team2bfeducators",
type: "GET",
data: {
region: region
@ -382,6 +382,12 @@
$('#educator-wrapper').empty();
toggleSubmit();
},
error: function() {
educatorData = [];
$('#educator-wrapper').empty();
alert('Unable to load educators for the selected region.');
toggleSubmit();
}
});
@ -393,6 +399,11 @@
const maxFields = 48;
const urlRegion = new URLSearchParams(window.location.search).get('region');
if (urlRegion) {
$('#field-region').val(urlRegion).trigger('change');
}
/* ================= ADD EDUCATOR ================= */
$('#add-educator').on('click', function() {