Skip to content

Commit

Permalink
Rollup merge of #32492 - xitep:master, r=alexcrichton
Browse files Browse the repository at this point in the history
Avoid page reload upon hitting "S" when browsing documentation in local mode

The problem seems to have been introduced with commit 2910c00
  • Loading branch information
Manishearth committed Mar 26, 2016
2 parents 2c4d039 + 88ab938 commit 90f2b69
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 90f2b69

Please sign in to comment.