Commit 7a6da270 authored by David Mudrak's avatar David Mudrak Committed by Nigel McNie
Browse files

Adds 'current-tab' to the <li> elements as well



This is useful for themers.
Signed-off-by: default avatarDavid Mudrak <david.mudrak@gmail.com>
parent cf6bcdf0
......@@ -13,10 +13,12 @@ addLoadEvent(function() {
connect(a, 'onclick', function(e) {
forEach(fieldsets, function(fieldset) {
if (fieldset == legend.parentNode) {
addElementClass(fieldset.tabLink.parentNode, 'current-tab');
addElementClass(fieldset.tabLink, 'current-tab');
removeElementClass(fieldset, 'safe-hidden');
}
else {
removeElementClass(fieldset.tabLink.parentNode, 'current-tab');
removeElementClass(fieldset.tabLink, 'current-tab');
addElementClass(fieldset, 'safe-hidden');
}
......@@ -34,6 +36,7 @@ addLoadEvent(function() {
}
else {
// not collapsed by default, probably was the default one to show
addElementClass(fieldset.tabLink.parentNode, 'current-tab');
addElementClass(fieldset.tabLink, 'current-tab');
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment