diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-03-26 20:35:49 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-03-26 20:35:49 +0530 |
| commit | 90f2b69cddc92c8b3ff3a51f261d441a58b706bd (patch) | |
| tree | 4cfc85ec9ad76427f7b74d7418a42365e714e08a /src | |
| parent | 2c4d039b762f5fc9e1d3340196dc2ca05d9bf104 (diff) | |
| parent | 88ab9382ae79346969d79c15a27c77368a928dd8 (diff) | |
Rollup merge of #32492 - xitep:master, r=alexcrichton
Avoid page reload upon hitting "S" when browsing documentation in local mode The problem seems to have been introduced with commit 2910c0020661304df237fb8ed646296304c8e0d2
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/static/main.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 8fb58f58e8a..1d1e78926f1 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -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'); |
