Fixes active entry in dropdown menus not highlighted

Fixes #3546
This commit is contained in:
Simone Mainardi 2020-03-18 15:07:54 +01:00
parent c5ebc780c6
commit e1c437ff51
10 changed files with 117 additions and 119 deletions

View file

@ -1478,8 +1478,6 @@ function printCategoryDropdownButton(by_id, cat_id_or_name, base_url, page_param
print('<li><a class="dropdown-item '.. ternary(cat_id_or_name == ternary(by_id, entry.cat_id, entry.id), 'active', '') ..'" href="' .. getPageUrl(base_url, page_params) .. '">' .. (entry.icon or "") ..
entry.text .. '</a></li>')
else
print(makeMenuDivider())
end
end