diff options
| author | Earl St Sauver <estsauver@gmail.com> | 2015-04-04 15:21:18 +0700 |
|---|---|---|
| committer | Earl St Sauver <estsauver@gmail.com> | 2015-04-04 15:21:18 +0700 |
| commit | 1b1d910cd72f1cf1814355d5e775043d36e3b920 (patch) | |
| tree | ca94172a673667f67bf904f6bc86a4eeaf1962f7 /src/librustdoc/html | |
| parent | bcae782aa8acfba62d3446c61f17290c17e7de05 (diff) | |
| download | rust-1b1d910cd72f1cf1814355d5e775043d36e3b920.tar.gz rust-1b1d910cd72f1cf1814355d5e775043d36e3b920.zip | |
Make changing doc search unhighlight current result
If a result is highlighted, when the search changes that state should no longer be highlighted. Fixes #24044 cc @steveklabnik
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/static/main.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index ca6d9441957..aa5aa2421f8 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -468,6 +468,8 @@ if ($active.length) { document.location.href = $active.find('a').prop('href'); } + } else { + $active.removeClass('highlighted'); } }); } |
