Skip to content
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

Search input changes #41

Merged
merged 1 commit into from Apr 17, 2017
Merged

Search input changes #41

merged 1 commit into from Apr 17, 2017

Conversation

nikolas
Copy link
Member

@nikolas nikolas commented Apr 17, 2017

I've made a few changes here:

  • Capture the form.submit event, to prevent the Return key in the search
    field from triggering a traditional form submit.
  • use type="search" on the search input field
  • ran whitespace-cleanup-region on the css file and auto-formatted it.
    the formatting was all messed up.

I've made a few changes here:
* Capture the form.submit event, to prevent the Return key in the search
  field from triggering a traditional form submit.
* use type="search" on the search input field
* ran whitespace-cleanup-region on the css file and auto-formatted it.
  the formatting was all messed up.
@@ -258,6 +258,9 @@
});

$('#clear-search').click(clearSearch);
$('form.search-container').submit(function(e) {
Copy link
Member Author

Choose a reason for hiding this comment

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

An alternative to capturing the submit event here and ignoring it could be to just change the form element to a div element, since we're not using the traditional form behavior anyways. That might even be a cleaner approach... but it's no big deal either way.

Copy link
Contributor

Choose a reason for hiding this comment

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

My vote would be to leave it as a form element so its picked up in any form styles that Marc may lay down.

@nbuonin nbuonin merged commit ae90821 into master Apr 17, 2017
@nbuonin nbuonin deleted the search-input-changes branch April 17, 2017 20:55
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.

None yet

2 participants