Skip to content
Snippets Groups Projects
Commit 663a13dd authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#338 - ignore case on search

parent 55d4cc06
No related branches found
No related tags found
No related merge requests found
Pipeline #3489 failed
......@@ -127,6 +127,7 @@ function createAdditionalHiddenInput(name, value)
function searchTemplates(searchText)
{
searchText = searchText.trim();
searchText = searchText.toLowerCase()
let templateItems = document.querySelectorAll('.template-item');
let collapsible = document.getElementById('templateCollapsible');
......@@ -146,7 +147,7 @@ function searchTemplates(searchText)
{
let item = templateItems[i];
let templateName = item.querySelector('.template-header-name').innerText;
if(templateName.includes(searchText))
if(templateName.toLowerCase().includes(searchText))
{
item.classList.remove('hidden');
numberOfVisibleItems++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment