Mark the active Text or Image tab.
The active tab stays solid green, and the other tab is pale with green text. A tab whose field failed validation now shows red text.
This commit is contained in:
@@ -19,6 +19,12 @@ function showHide(show) {
|
||||
document.getElementById(show+'parent').style.display = "block";
|
||||
}
|
||||
|
||||
// Mark the tab that is showing
|
||||
var showTab = document.getElementById(show+'tab');
|
||||
var hideTab = document.getElementById(hide+'tab');
|
||||
if (showTab) showTab.classList.add('active');
|
||||
if (hideTab) hideTab.classList.remove('active');
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user