diff options
author | Heather Miller <heather.miller@epfl.ch> | 2012-08-23 16:22:04 +0200 |
---|---|---|
committer | Heather Miller <heather.miller@epfl.ch> | 2012-08-23 16:22:04 +0200 |
commit | 2b4ae0e22d32136415cf09df640c47d2861fac08 (patch) | |
tree | 37197b68c519a5019cb055579cf5ae9b1c5915cb | |
parent | 1be1f760125a6737dfa289d2f456660db5482199 (diff) | |
download | scala-2b4ae0e22d32136415cf09df640c47d2861fac08.tar.gz scala-2b4ae0e22d32136415cf09df640c47d2861fac08.tar.bz2 scala-2b4ae0e22d32136415cf09df640c47d2861fac08.zip |
SI-4857 fixes showall/hideall Scaladoc interface bug
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js b/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js index 5920fdfdb2..c81a8672d3 100644 --- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js +++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js @@ -101,6 +101,12 @@ $(document).ready(function(){ $("#linearization li.in").removeClass("in").addClass("out"); $("#linearization li:first").removeClass("out").addClass("in"); $("#implicits li.in").removeClass("in").addClass("out"); + + if ($(this).hasClass("out") && $("#mbrsel > div[id=ancestors] > ol > li.showall").hasClass("in")) { + $(this).removeClass("out").addClass("in"); + $("#mbrsel > div[id=ancestors] > ol > li.showall").removeClass("in").addClass("out"); + } + filter(); }) $("#mbrsel > div[id=ancestors] > ol > li.showall").click(function() { @@ -116,6 +122,11 @@ $(document).ready(function(){ }); filteredImplicits.removeClass("out").addClass("in"); + if ($(this).hasClass("out") && $("#mbrsel > div[id=ancestors] > ol > li.hideall").hasClass("in")) { + $(this).removeClass("out").addClass("in"); + $("#mbrsel > div[id=ancestors] > ol > li.hideall").removeClass("in").addClass("out"); + } + filter(); }); $("#visbl > ol > li.public").click(function() { |