-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #1138 Fix search query (jkufner)
This PR was squashed before being merged into the master branch. Discussion ---------- Fix search query When visiting `http://localhost:8000/cs/blog/search?q=de` directly, the search is not triggered automatically. This PR triggers the search on page load and passes the provided query argument to the input field. Commits ------- de60ace Fix search query
- Loading branch information
Showing
5 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import './jquery.instantSearch.js'; | ||
|
||
$(function() { | ||
$('.search-field').instantSearch({ | ||
delay: 100, | ||
}); | ||
$('.search-field') | ||
.instantSearch({ | ||
delay: 100, | ||
}) | ||
.keyup(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters