Hide form parts with the hidden attribute.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user