fixes and patches n stuff
This commit is contained in:
parent
7c7ae8e051
commit
1af973d001
14 changed files with 571 additions and 268 deletions
|
|
@ -211,9 +211,17 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
});
|
||||
}
|
||||
|
||||
function normalizeTurkish(str) {
|
||||
if (!str) return '';
|
||||
return str
|
||||
.replace(/İ/g, 'i')
|
||||
.replace(/I/g, 'ı')
|
||||
.toLowerCase();
|
||||
}
|
||||
|
||||
if (searchInput) {
|
||||
searchInput.addEventListener('input', (e) => {
|
||||
currentSearch = e.target.value.trim().toLowerCase();
|
||||
currentSearch = normalizeTurkish(e.target.value.trim());
|
||||
if (searchClear) searchClear.classList.toggle('hidden', currentSearch.length === 0);
|
||||
applyFilters();
|
||||
});
|
||||
|
|
@ -290,7 +298,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
|
||||
let matchesSearch = true;
|
||||
if (currentSearch) {
|
||||
matchesSearch = searchText.includes(currentSearch);
|
||||
matchesSearch = normalizeTurkish(searchText).includes(currentSearch);
|
||||
}
|
||||
|
||||
if (matchesTab && matchesSubject && matchesSearch) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue