dotsviewer: Fix search

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8696>
This commit is contained in:
Thibault Saunier 2025-03-26 09:56:03 -03:00 committed by GStreamer Marge Bot
parent fdcd0ddca0
commit 801620242e

View File

@ -306,7 +306,7 @@ function updateSearch() {
const fuse = new Fuse(list, options);
const results = fuse.search(input.value);
for (div of allDivs) {
for (let div of allDivs) {
div.style.display = 'none';
}
@ -325,7 +325,7 @@ function updateSearch() {
return scoreA - scoreB; // For ascending order. Use (scoreB - scoreA) for descending.
});
for (div of divs) {
for (let div of divs) {
div.parentNode.appendChild(div);
}
}