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

Add date filter to search results #338

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Azuny
Copy link

@Azuny Azuny commented Aug 16, 2017

So I tried to implement date filter for search results like it was suggested in #109 . Basically just adding the calendar from https://github.com/dangrossman/bootstrap-daterangepicker, sending the date range as a request parameter and filtering directly in elastic, or in database model.

@@ -48,6 +48,11 @@
<script src="{{ static_cachebuster('js/bootstrap-select.js') }}"></script>
<script src="{{ static_cachebuster('js/main.js') }}"></script>

<!-- Include Date Range Picker -->
<script type="text/javascript" src="//cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
Copy link
Contributor

Choose a reason for hiding this comment

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

please use cloudflare's CDNJS with an integrity check, no need to contact even more domains

@ArjixWasTaken
Copy link

moment is too big of a dependency, you should look into dayjs

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.

3 participants