summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2010-07-06 16:21:00 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2010-07-06 16:21:00 +0000
commit02ac95f07614fcc329fe79c7c7e9d6cf90fe64ea (patch)
tree1c85219bafcd7649b4b6e26e11215235767f145b /src/compiler
parentc66d3b0d445bdb96cb363a1bf492672aff3bdcf0 (diff)
downloadscala-02ac95f07614fcc329fe79c7c7e9d6cf90fe64ea.tar.gz
scala-02ac95f07614fcc329fe79c7c7e9d6cf90fe64ea.tar.bz2
scala-02ac95f07614fcc329fe79c7c7e9d6cf90fe64ea.zip
[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.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css5
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js1
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);