Still converting to bootstrap 5. Minor style fix

This commit is contained in:
emeric
2022-05-09 21:03:19 +02:00
parent 13b6437cea
commit 9119193341
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -396,8 +396,7 @@ handlePathChange(Wt::WStackedWidget& stack, bool isAdmin)
LMS_LOG(UI, DEBUG) << "Internal path changed to '" << wApp->internalPath() << "'";
LmsApp->doJavaScript(R"($('.navbar-nav li.active').removeClass('active'); $('.navbar-nav a[href="' + location.pathname + '"]').closest('li').addClass('active');)");
LmsApp->doJavaScript(R"($('.navbar-nav a.active').removeClass('active'); $('.navbar-nav a[href="' + location.pathname + '"]').closest('a').addClass('active');)");
for (const auto& view : views)
{
if (wApp->internalPathMatches(view.path))