diff options
author | Pedro Furlanetto <pedrofurla@gmail.com> | 2010-09-24 06:26:04 +0000 |
---|---|---|
committer | Pedro Furlanetto <pedrofurla@gmail.com> | 2010-09-24 06:26:04 +0000 |
commit | ba5d0ec898c7c7fffc56e00bb955b53ec4c8e3da (patch) | |
tree | 6968596d1c85bd3391e0dfbf4b44c5514299dcc4 /src/compiler | |
parent | 6e710c26ea5b660b168d9ccdae4d6670f731ad6a (diff) | |
download | scala-ba5d0ec898c7c7fffc56e00bb955b53ec4c8e3da.tar.gz scala-ba5d0ec898c7c7fffc56e00bb955b53ec4c8e3da.tar.bz2 scala-ba5d0ec898c7c7fffc56e00bb955b53ec4c8e3da.zip |
Adds a half second delay before showing tooltips.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js | 4 |
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")) } |