Skip to content

Commit

Permalink
Simple implementation of the search clear button
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Feb 7, 2024
1 parent 083e969 commit 5ccbe55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radis/search/templates/search/_search_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
placeholder="Type in your search query and press enter"
class="form-control" />
<button type="button"
onclick="location.href='{% url 'search' %}?algorithm={{ request.GET.algorithm }}'"
onclick="location.assign('?algorithm={{ selected_algorithm|urlencode }}')"
class="btn bg-transparent"
style="width: 40px;
margin-left: -40px;
Expand Down

0 comments on commit 5ccbe55

Please sign in to comment.