Skip to content

fixes #28696 #28725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

fixes #28696 #28725

wants to merge 1 commit into from

Conversation

marti1125
Copy link
Contributor

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@marti1125
Copy link
Contributor Author

@steveklabnik is fixed this issue

@steveklabnik
Copy link
Member

r? @alexcrichton

I reviewed this locally and it works well, but I'd like someone else to sign off on it too.

@@ -890,6 +890,22 @@
return "\u2212"; // "\u2212" is '−' minus sign
}

$(".search-input").on("keyup",function() {
if ($(this).val().length === 0) {
window.history.pushState("", "std - Rust", "?search=");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either use replaceState, or ensure that we only push at most 1 instance of this. Otherwise we just mess up the browser’s history stack.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the advice @nagisa I am going to change that

}
});

$('.search-input').on('search', function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, also, search event is webkit (safari, epiphany) specific. It is not standard, nor it is supported widely.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added search for webkit for ("X") in chrome... or maybe remove X in chrome... what do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use a standard event (input should do), like in this PR.

@steveklabnik
Copy link
Member

@nagisa is happy with this, I'm happy with this. r=me after a squash.

@alexcrichton
Copy link
Member

Yes thanks @marti1125! This also looks good to me as well.

Can you also expand the commit messages to have a more detailed description of what was changed, what was fixed, and how it works? It's helpful when browsing the history of the repo to have a little more context than "update main.js" and "fixes #xxxx" :)

@marti1125
Copy link
Contributor Author

@alexcrichton I think is done =D

@alexcrichton
Copy link
Member

Thanks! Could you also squash all the commits together and perhaps merge some of the messages? You can find some good examples of how to write nice commit messages here.

@marti1125
Copy link
Contributor Author

@alexcrichton I am going to create a new clean PR with solution

@marti1125 marti1125 closed this Sep 30, 2015
@marti1125 marti1125 deleted the 28696 branch September 30, 2015 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants