Hide form parts with the hidden attribute.

This commit is contained in:
tim
2026-09-26 15:27:51 +02:00
parent 65426a327d
commit 716a609f4e
6 changed files with 27 additions and 16 deletions
+6 -6
View File
@@ -8,15 +8,15 @@ function showHide(show) {
}
if (show == 'text') {
document.getElementById(hide+'parent').style.display = "none";
document.getElementById(show+'parent').style.display = "block";
document.getElementById('wordcounter').style.display = "block";
document.getElementById(hide+'parent').hidden = true;
document.getElementById(show+'parent').hidden = false;
document.getElementById('wordcounter').hidden = false;
if (window.storyEditor)
storyEditor.focus();
} else if (show == 'upload') {
document.getElementById('wordcounter').style.display = "none";
document.getElementById(hide+'parent').style.display = "none";
document.getElementById(show+'parent').style.display = "block";
document.getElementById('wordcounter').hidden = true;
document.getElementById(hide+'parent').hidden = true;
document.getElementById(show+'parent').hidden = false;
}
// Mark the tab that is showing