summaryrefslogtreecommitdiff
path: root/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/index.js
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-02-18 12:39:34 +0100
committerFelix Mulder <felix.mulder@gmail.com>2016-02-18 13:37:51 +0100
commit1cfe82eadeb1a7823c9ac3f3f8f2c9f376238c71 (patch)
treec5cfee0499b7324673a77f42cfa58ac378b5f27a /src/scaladoc/scala/tools/nsc/doc/html/resource/lib/index.js
parentb624d4df1e2eb961023bedc60770f1bb1594bdd9 (diff)
downloadscala-1cfe82eadeb1a7823c9ac3f3f8f2c9f376238c71.tar.gz
scala-1cfe82eadeb1a7823c9ac3f3f8f2c9f376238c71.tar.bz2
scala-1cfe82eadeb1a7823c9ac3f3f8f2c9f376238c71.zip
Add better hover-text in search results
Diffstat (limited to 'src/scaladoc/scala/tools/nsc/doc/html/resource/lib/index.js')
-rw-r--r--src/scaladoc/scala/tools/nsc/doc/html/resource/lib/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/index.js b/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/index.js
index 7ba18a26d9..c23ece144a 100644
--- a/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/index.js
+++ b/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/index.js
@@ -352,7 +352,7 @@ function searchMembers(entities, regExp, pack) {
nameElem.className = "entity";
var entityUrl = document.createElement("a");
- entityUrl.title = name;
+ entityUrl.title = entity.shortDescription ? entity.shortDescription : name;
entityUrl.href = toRoot + entity[entity.kind];
entityUrl.appendChild(document.createTextNode(name));
@@ -484,7 +484,7 @@ function listItem(entity, regExp) {
nameElem.className = "entity";
var entityUrl = document.createElement("a");
- entityUrl.title = name;
+ entityUrl.title = entity.shortDescription ? entity.shortDescription : name;
entityUrl.href = toRoot + entity[entity.kind];
entityUrl.appendChild(document.createTextNode(name));