Skip to content

Commit

Permalink
Avoid page reload upon hitting "S" when browing in local mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Novotnik, Petr committed Mar 25, 2016
1 parent 64a13a4 commit 88ab938
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,6 @@
if ($(this).val().length === 0) {
if (browserSupportsHistoryApi()) {
history.replaceState("", "std - Rust", "?search=");
} else {
location.replace("?search=");
}
$('#main.content').removeClass('hidden');
$('#search.content').addClass('hidden');
Expand Down

0 comments on commit 88ab938

Please sign in to comment.