diff options
author | Kato Kazuyoshi <kato.kazuyoshi@gmail.com> | 2011-04-20 14:37:39 +0000 |
---|---|---|
committer | Kato Kazuyoshi <kato.kazuyoshi@gmail.com> | 2011-04-20 14:37:39 +0000 |
commit | b477d7389bba6d53f18f9ea3defd445013f24df3 (patch) | |
tree | 58265a26bbc8288e37c08e54d8e8238d6782f23e /src | |
parent | 5485932c5a822c2761682326381217697eb2ae4e (diff) | |
download | scala-b477d7389bba6d53f18f9ea3defd445013f24df3.tar.gz scala-b477d7389bba6d53f18f9ea3defd445013f24df3.tar.bz2 scala-b477d7389bba6d53f18f9ea3defd445013f24df3.zip |
[scaladoc] kindFilter should switch show/hide a...
[scaladoc] kindFilter should switch show/hide anchor of package. Closes
#4463. Review by malayeri.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js index 0f25f024f4..925f07bcb1 100644 --- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js +++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js @@ -438,10 +438,13 @@ function kindFilter(kind) { /* Applies the kind filter. */ function kindFilterSync() { - if (kindFilterState == "all" || focusFilterState != null) + if (kindFilterState == "all" || focusFilterState != null) { + $("#tpl a.packhide").text('hide'); $("#tpl ol.templates").show(); - else + } else { + $("#tpl a.packhide").text('show'); $("#tpl ol.templates").hide(); + } } function resizeFilterBlock() { |