Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected function queryByWordId(int $wordId) {
$this->query->addWhere('AND', 'di.detail_items_schoolyear', $schoolYear);
}

$this->query->addWhere('AND', 'di.detail_items_clarification', $this->value);
$this->query->addWhere('AND', 'di.detail_items_clarification', $this->value, 'IN');
}

/**
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions public/themes/custom/hdbt_subtheme/src/js/high-school-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@
'filters that were dimmed, select the option "All" on the selected filter.',
);
select.parentElement?.classList.add('hdbt--select-wrapper--disabled');
select.disabled = true;
select.dataset.ariaDisabled = 'true';

// Disabling the field by `select.disabled=true` interferes with ajax.
select.classList.add('disabled', 'noclick');
select.value = 'All';
select.setAttribute('aria-disabled', 'true');
} else {
helpText.textContent = '';

select.classList.remove('disabled', 'noclick');
select.parentElement?.classList.remove('hdbt--select-wrapper--disabled');
select.disabled = false;
select.dataset.ariaDisabled = 'false';
select.setAttribute('aria-disabled', 'false');
}
};

// Disable all other selects except the one that has some OTHER option selected
// than 'All' and enable them all if they all have 'All' option selected.
// Only one of the two emphasis fields may be selected.
const disableOtherSelects = (selected, selectElements) => {
if (selected.value !== 'All') {
/** biome-ignore lint/suspicious/useIterableCallbackReturn: @todo UHF-12501 */
Expand Down