Skip to content
Snippets Groups Projects
Commit da508e0e authored by Robert Lange's avatar Robert Lange
Browse files

refs #19651 [finc] bugfix advanced search: check for attribute aria-label

parent d9c01c91
No related merge requests found
...@@ -91,7 +91,9 @@ function addGroup(_firstTerm, _firstField, _join) { ...@@ -91,7 +91,9 @@ function addGroup(_firstTerm, _firstField, _join) {
$newGroup.find('.adv-group-label') // update label $newGroup.find('.adv-group-label') // update label
.attr('for', 'search_lookfor' + nextGroup + '_0'); .attr('for', 'search_lookfor' + nextGroup + '_0');
$newGroup.attr('id', 'group' + nextGroup); $newGroup.attr('id', 'group' + nextGroup);
$newGroup.attr('aria-label', $newGroup.attr('aria-label').replace('0', nextGroup + 1)); if ($newGroup.attr('aria-label')) {
$newGroup.attr('aria-label', $newGroup.attr('aria-label').replace('0', nextGroup + 1));
}
$newGroup.find('.search_place_holder') $newGroup.find('.search_place_holder')
.attr('id', 'group' + nextGroup + 'Holder') .attr('id', 'group' + nextGroup + 'Holder')
.removeClass('hidden'); .removeClass('hidden');
......
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