WIP: Anpassung der results seite und erstellung der script-datei #37

Draft
viratex wants to merge 24 commits from SuchergebnisseJS into dev
Showing only changes of commit beeab0ec90 - Show all commits
+1 -3
View File
1
@@ -3,13 +3,10 @@ function initSorter() {
const form = document.getElementById('search-form-id');
const sortRadios = document.querySelectorAll('.sort-radio');
console.log("Sorter geladen. Formular gefunden:", !!form, "Radios gefunden:", sortRadios.length);
if (!form) return;
sortRadios.forEach(radio => {
radio.addEventListener('change', function() {
console.log("Sortierung geändert auf:", this.value);
const pageInput = document.getElementById('s-res-page-input');
if (pageInput) {
@@ -21,6 +18,7 @@ function initSorter() {
});
}
// ist das DOM bereits vollständig aufgebaut?
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', initSorter);
} else {