This commit is contained in:
@@ -184,6 +184,7 @@
|
|||||||
let dialog = byId('info-dialog') || qs('#info-dialog');
|
let dialog = byId('info-dialog') || qs('#info-dialog');
|
||||||
let title = byId('info-dialog-title') || qs('#info-dialog-title', dialog);
|
let title = byId('info-dialog-title') || qs('#info-dialog-title', dialog);
|
||||||
let backButton = byId('info-back') || qs('#info-back', 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 closeButton = byId('info-close') || qs('#info-close', dialog);
|
||||||
let content = qs('.info-dialog-content', dialog) || qs('.info-dialog-content');
|
let content = qs('.info-dialog-content', dialog) || qs('.info-dialog-content');
|
||||||
|
|
||||||
@@ -238,6 +239,9 @@
|
|||||||
setAttribute(backButton, 'aria-label', 'Zurück zum Informationsmenü');
|
setAttribute(backButton, 'aria-label', 'Zurück zum Informationsmenü');
|
||||||
backButton.hidden = true;
|
backButton.hidden = true;
|
||||||
}
|
}
|
||||||
|
if (legacyMenu) {
|
||||||
|
legacyMenu.hidden = true;
|
||||||
|
}
|
||||||
if (closeButton) {
|
if (closeButton) {
|
||||||
setAttribute(closeButton, 'type', 'button');
|
setAttribute(closeButton, 'type', 'button');
|
||||||
setAttribute(closeButton, 'aria-label', 'Informationsfenster schließen');
|
setAttribute(closeButton, 'aria-label', 'Informationsfenster schließen');
|
||||||
@@ -248,7 +252,7 @@
|
|||||||
Object.keys(pageTitles).forEach(name => ensureInfoPage(content, name));
|
Object.keys(pageTitles).forEach(name => ensureInfoPage(content, name));
|
||||||
}
|
}
|
||||||
|
|
||||||
return { dialog, title, backButton, closeButton, content };
|
return { dialog, title, backButton, legacyMenu, closeButton, content };
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensureInfoUi() {
|
function ensureInfoUi() {
|
||||||
|
|||||||
Reference in New Issue
Block a user