Commit 159f0531 authored by AUTOMATIC's avatar AUTOMATIC

make extra networks search case-insensitive

parent 837ec118
......@@ -13,10 +13,10 @@ function setupExtraNetworksForTab(tabname){
tabs.appendChild(close)
search.addEventListener("input", function(evt){
searchTerm = search.value
searchTerm = search.value.toLowerCase()
gradioApp().querySelectorAll('#'+tabname+'_extra_tabs div.card').forEach(function(elem){
text = elem.querySelector('.name').textContent
text = elem.querySelector('.name').textContent.toLowerCase()
elem.style.display = text.indexOf(searchTerm) == -1 ? "none" : ""
})
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment