Fixed title not correctly saving!

This commit is contained in:
Felix Homa 2023-08-01 14:45:59 +02:00
parent 45d57d181d
commit e208d65b7c
Signed by: felix.homa
GPG Key ID: 43610F311720D3DA
1 changed files with 5 additions and 2 deletions

View File

@ -373,7 +373,7 @@
*/
var queryString="";
for(var i in inputs) {
queryString+="&"+inputs[i]+"="+encodeURIComponent(document.getElementById(inputs[i]).value); // Hier werden Zahlen erwartet ... die müssen nicht encoded werden
queryString+="&"+inputs[i]+"="+encodeURIComponent(document.getElementById(inputs[i]).value);
}
queryString="?"+queryString.substr(1);
window.history.pushState({},"", queryString);
@ -435,6 +435,9 @@
for(let eid in seatingInputs) {
document.getElementById(seatingInputs[eid]).onchange=rebuildSeating;
}
if(("inputExamTitle" in get_params)) {
document.getElementById("inputExamTitle").value=get_params["inputExamTitle"];
}
rebuildSeating();
document.getElementById("inputExamTitle").onchange=updateTitle;
document.getElementById("inputExamTitle").oninput=updateTitle;