mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2024-12-05 02:06:52 +00:00
Encode URI for the search bar value
This commit is contained in:
parent
a7d455eeb1
commit
a2fd82ee96
@ -229,7 +229,7 @@
|
||||
$(document).ready(function () {
|
||||
$('button[data-target="#searchModal"]').click(function() {
|
||||
let modalBody = $("#searchModal div.modal-body");
|
||||
let q = $("#search-term").val();
|
||||
let q = encodeURI($("#search-term").val());
|
||||
modalBody.load("{% url "haystack_search" %}?q=" + q + " #search-results");
|
||||
});
|
||||
$('a[data-target="#loginModal"]').click(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user