diff --git a/public/js/legal-ui.js b/public/js/legal-ui.js index b7c2833..a619fc1 100644 --- a/public/js/legal-ui.js +++ b/public/js/legal-ui.js @@ -184,6 +184,7 @@ let dialog = byId('info-dialog') || qs('#info-dialog'); let title = byId('info-dialog-title') || qs('#info-dialog-title', dialog); let backButton = byId('info-back') || qs('#info-back', dialog); + let legacyMenu = byId('info-menu') || qs('#info-menu', dialog); let closeButton = byId('info-close') || qs('#info-close', dialog); let content = qs('.info-dialog-content', dialog) || qs('.info-dialog-content'); @@ -238,6 +239,9 @@ setAttribute(backButton, 'aria-label', 'Zurück zum Informationsmenü'); backButton.hidden = true; } + if (legacyMenu) { + legacyMenu.hidden = true; + } if (closeButton) { setAttribute(closeButton, 'type', 'button'); setAttribute(closeButton, 'aria-label', 'Informationsfenster schließen'); @@ -248,7 +252,7 @@ Object.keys(pageTitles).forEach(name => ensureInfoPage(content, name)); } - return { dialog, title, backButton, closeButton, content }; + return { dialog, title, backButton, legacyMenu, closeButton, content }; } function ensureInfoUi() { @@ -444,4 +448,4 @@ } ready(init); -}(globalThis.Wegwichtel = globalThis.Wegwichtel || {})); +}(globalThis.Wegwichtel = globalThis.Wegwichtel || {})); \ No newline at end of file