From 02ac95f07614fcc329fe79c7c7e9d6cf90fe64ea Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Tue, 6 Jul 2010 16:21:00 +0000 Subject: [scaladoc] Hiding full comments in template pag... [scaladoc] Hiding full comments in template pages at startup is done by CSS instead of JavaScript, leading to better performance. Contributed by Pedro Furlanetto. Review by dubochet. --- src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css | 5 ++++- src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css b/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css index 0a49f6296a..8399a6abe8 100644 --- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css +++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css @@ -314,10 +314,13 @@ p.shortcomment { } div.fullcomment { - display: block; margin: 10px 0 10px 0; } +#types div.fullcomment, #values div.fullcomment { + display:none +} + #template div.fullcomment { margin: 6px 0 6px 8.7em; } 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 7981363699..6f01e56ddc 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,7 +101,6 @@ $(document).ready(function(){ $(this.getTip()).text(this.getTrigger().attr("name")); } }); - $("#template div.fullcomment").hide(); var docAllSigs = $("#template .signature"); function commentShowFct(fullComment){ var vis = $(":visible", fullComment); -- cgit v1.2.3