Skip to content

Commit

Permalink
[FIXED JENKINS-15568] - Collapsing sections correctly appear in IE
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>
  • Loading branch information
gnikodim authored and oleg-nenashev committed Aug 8, 2013
1 parent c607615 commit 1d6f8b9
Showing 1 changed file with 16 additions and 6 deletions.
@@ -1,13 +1,23 @@
function doToggle(o)
{
var section = o.parentNode.parentNode;
if (section.nextElementSibling.className == "collapsed") {
section.nextElementSibling.className = "expanded";
o.innerHTML = "Hide Details";
if (section.nextElementSibling) {
if (section.nextElementSibling.className == "collapsed") {
section.nextElementSibling.className = "expanded";
o.innerHTML = "Hide Details";
} else {
section.nextElementSibling.className = "collapsed";
o.innerHTML = "Show Details";
}
} else {
section.nextElementSibling.className = "collapsed";
o.innerHTML = "Show Details";
}
if (section.nextSibling.className == "collapsed") {
section.nextSibling.className = "expanded";
o.innerHTML = "Hide Details";
} else {
section.nextSibling.className = "collapsed";
o.innerHTML = "Show Details";
}
}
}

(function() {
Expand Down

0 comments on commit 1d6f8b9

Please sign in to comment.