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 2910c00206
This commit is contained in:
Manish Goregaokar 2016-03-26 20:35:49 +05:30
commit 90f2b69cdd

View file

@ -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');