summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js
diff options
context:
space:
mode:
authorPedro Furlanetto <pedrofurla@gmail.com>2010-09-24 06:26:04 +0000
committerPedro Furlanetto <pedrofurla@gmail.com>2010-09-24 06:26:04 +0000
commitba5d0ec898c7c7fffc56e00bb955b53ec4c8e3da (patch)
tree6968596d1c85bd3391e0dfbf4b44c5514299dcc4 /src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js
parent6e710c26ea5b660b168d9ccdae4d6670f731ad6a (diff)
downloadscala-ba5d0ec898c7c7fffc56e00bb955b53ec4c8e3da.tar.gz
scala-ba5d0ec898c7c7fffc56e00bb955b53ec4c8e3da.tar.bz2
scala-ba5d0ec898c7c7fffc56e00bb955b53ec4c8e3da.zip
Adds a half second delay before showing tooltips.
Diffstat (limited to 'src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js')
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js4
1 files changed, 3 insertions, 1 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 efa4288a67..8493428fcd 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
@@ -98,13 +98,15 @@ $(document).ready(function(){
$(".extype").tooltip({
tip: "#tooltip",
position:"top center",
+ predelay: 500,
onBeforeShow: function(ev) {
$(this.getTip()).text(this.getTrigger().attr("name"));
}
});
$(".defval").tooltip({
tip: "#tooltip",
- position:"top center",
+ position:"top center",
+ predelay: 500,
onBeforeShow: function(ev) {
$(this.getTip()).html(this.getTrigger().attr("name"))
}