From b477d7389bba6d53f18f9ea3defd445013f24df3 Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Wed, 20 Apr 2011 14:37:39 +0000 Subject: [scaladoc] kindFilter should switch show/hide a... [scaladoc] kindFilter should switch show/hide anchor of package. Closes #4463. Review by malayeri. --- src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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() { -- cgit v1.2.3