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

Fix jQuery instantSearch plugin and search result #632

Closed
wants to merge 2 commits into from
Closed

Fix jQuery instantSearch plugin and search result #632

wants to merge 2 commits into from

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented Aug 31, 2017

search

instantSearch

  • Refactored to some known JavaScript pattern (implemented Prototype Design Pattern)
  • Allow override options through input attributes data-* and added support to text translation ("No results found")
  • Add article template prototype and render method (improved visibility)
  • Sent configured limit of items to search controller (this allows to configure more than 10 items as results from plugin)
  • Simplify properties and methods (improved visibility)

Search result

  • Removed old effect of hide/show results on focus out/in of the input
  • Show publishedDate and author for each article found
  • Sync style with blog index page and some margin adjustments

Minor unrelated changes

  • Fix @return type-hints for PostRepository::findBySearchQuery() method (better IDE autocomplete)
  • Show logout link as last link always

@javiereguiluz
Copy link
Member

What can I say? This is fantastic and amazing. I tested it and I love all the changes. Thanks!

@yceruto yceruto deleted the search branch August 31, 2017 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants