Skip to content
Snippets Groups Projects
Commit 3abd4d6b authored by Moritz Strohm's avatar Moritz Strohm
Browse files

moved item categories with no results in global search out of focus

parent 57484a83
Branches
No related tags found
No related merge requests found
......@@ -143,7 +143,8 @@ const Search = {
$(`a#search_category_${name}`)
.removeClass('no-result')
.text(`${value.name} (${counter}${value.plus ? '+' : ''})`);
.text(`${value.name} (${counter}${value.plus ? '+' : ''})`)
.attr('tabindex', '0');
// We have more search results than shown, provide link to
// full search if available.
......@@ -326,7 +327,7 @@ const Search = {
* Grey out all categories in the sidebar with no results.
*/
greyOutSearchCategories: function () {
$('a[id^="search_category_"]').addClass('no-result');
$('a[id^="search_category_"]').addClass('no-result').attr('tabindex', '-1');
},
/**
......@@ -371,6 +372,7 @@ const Search = {
$('#show_all_categories').closest('li').addClass('active');
} else {
$(`#search_category_${category}`).closest('li').addClass('active');
$(`#search_category_${category}`).attr('tabindex', '0');
}
STUDIP.Search.showFilter(category);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment