Ver 14.01 Teams selection fixed
This commit is contained in:
parent
d3e1dcb6b3
commit
8724b9d7bb
@ -164,6 +164,13 @@
|
|||||||
if (teamSelect) {
|
if (teamSelect) {
|
||||||
teamSelect.addEventListener('change', function() {
|
teamSelect.addEventListener('change', function() {
|
||||||
const teamId = this.value;
|
const teamId = this.value;
|
||||||
|
|
||||||
|
// First, deselect ALL workers to clear previous selection
|
||||||
|
const allCheckboxes = document.querySelectorAll('input[name="workers"]');
|
||||||
|
allCheckboxes.forEach(cb => {
|
||||||
|
cb.checked = false;
|
||||||
|
});
|
||||||
|
|
||||||
if (teamId && teamWorkersMap[teamId]) {
|
if (teamId && teamWorkersMap[teamId]) {
|
||||||
const workerIds = teamWorkersMap[teamId];
|
const workerIds = teamWorkersMap[teamId];
|
||||||
// Select workers belonging to the team
|
// Select workers belonging to the team
|
||||||
@ -281,4 +288,4 @@
|
|||||||
form.submit();
|
form.submit();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user