docs: clarify no synthetic change-event needed in Salary sync block

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Konrad du Plessis 2026-05-16 22:27:26 +02:00
parent 31ee9e2e3c
commit bf3b63fc6b

View File

@ -1964,6 +1964,7 @@ document.addEventListener('DOMContentLoaded', function() {
var _ptFilter = document.getElementById('addAdjPayTypeFilter');
if (_ptFilter) {
var _isSalary = (addAdjType.value === 'Salary');
// Set .value directly — we do the row hide/show inline below, so a synthetic 'change' dispatch is deliberately not needed.
_ptFilter.value = _isSalary ? 'fixed' : '';
addAdjWorkerCheckboxes.forEach(function(cb) {
var row = cb.closest('.form-check');