Make set_active_menu_entry clear ranaming it to print_header_and_set_active_menu_entry

This commit is contained in:
Alfredo Cardigliano 2023-07-28 11:02:40 +02:00
parent c9430cd987
commit 45ed751ea7
73 changed files with 77 additions and 77 deletions

View file

@ -219,7 +219,7 @@ end
-- #################################
-- NOTE: this function must be called after page_utils.set_active_menu_entry
-- NOTE: this function must be called after page_utils.print_header_and_set_active_menu_entry
function page_utils.print_page_title(title, mini_title)
local help_link = page_utils.menu_entries[active_entry].help_link or ""
print("<header class='mb-3 d-flex align-items-center'>")
@ -239,7 +239,7 @@ end
-- NOTE: this function is called by the web pages in order to
-- set the active entry and section and highlight it into the menu
function page_utils.set_active_menu_entry(entry, i18n_params, alt_title)
function page_utils.print_header_and_set_active_menu_entry(entry, i18n_params, alt_title)
entry = entry or page_utils.menu_entries.traffic_dashboard
active_section = entry.section