js: Make the dialogue box heading actually be an <h2>

This is semantically more correct and less ugly as well.
This commit is contained in:
Ben Harris
2022-10-18 01:00:49 +01:00
parent 5c180cfa6f
commit dbbe9d3750
2 changed files with 2 additions and 3 deletions

View File

@ -185,8 +185,7 @@ function dialog_init(titletext) {
dlg_form = document.createElement("form"); dlg_form = document.createElement("form");
dlg_form.id = "dlgform"; dlg_form.id = "dlgform";
var title = document.createElement("p"); var title = document.createElement("h2");
title.className = "title";
title.appendChild(document.createTextNode(titletext)); title.appendChild(document.createTextNode(titletext));
dlg_form.appendChild(title); dlg_form.appendChild(title);

View File

@ -237,7 +237,7 @@ EOF
z-index: 100; z-index: 100;
} }
#dlgform .title { #dlgform h2 {
margin-top: 0px; margin-top: 0px;
} }