This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user