fixed url flicker

This commit is contained in:
2025-06-27 00:18:46 +02:00
parent e1d74c3091
commit 48950d1d82

View File

@@ -291,7 +291,7 @@
function filter() { function filter() {
shown = []; shown = [];
window.location.href = window.location.href.split("#")[0] + "#"; const curr = window.location.href.split("#")[0] + "#";
const path = window.location.href.split("#")[0].replace("index.html", ""); const path = window.location.href.split("#")[0].replace("index.html", "");
const selected_tags = []; const selected_tags = [];
@@ -323,7 +323,7 @@
} }
updateImageList(); updateImageList();
window.location.href += urltags; window.location.href = curr + urltags;
} }
function setFilter(selected) { function setFilter(selected) {
@@ -334,11 +334,6 @@
checkbox.checked = true; checkbox.checked = true;
} }
}); });
{# for (var i = 0; i < tagdropdown.length; i++) {
if (tagdropdown[i].innerText == tag) {
tagdropdown[i].firstChild.firstChild.checked = true;
}
} #}
}); });
} }