about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-05 00:03:21 +0000
committerbors <bors@rust-lang.org>2015-04-05 00:03:21 +0000
commit083b8a40413eb3dfec7430150b8895f6c8bbafca (patch)
tree21aa3aef91ede019ef8fb695fa9c09c9478542cb
parent1169693f03d73e422866d9c412328a031ed0e4df (diff)
parent1b1d910cd72f1cf1814355d5e775043d36e3b920 (diff)
downloadrust-083b8a40413eb3dfec7430150b8895f6c8bbafca.tar.gz
rust-083b8a40413eb3dfec7430150b8895f6c8bbafca.zip
Auto merge of #24055 - estsauver:24044, r=alexcrichton
If a result is highlighted, when the search changes that state should no
longer be highlighted. Fixes #24044

cc @steveklabnik
-rw-r--r--src/librustdoc/html/static/main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 4f8488cca68..484021fedc4 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');
                 }
             });
         }