mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
fix encoding issue in geocode-API call
This commit is contained in:
@@ -19,7 +19,7 @@ $(function () {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$sec.find(".col-md-1").html("<span class='fa fa-cog fa-spin'></span>");
|
$sec.find(".col-md-1").html("<span class='fa fa-cog fa-spin'></span>");
|
||||||
$.getJSON('/control/geocode/?q=' + escape(q), function (res) {
|
$.getJSON('/control/geocode/?q=' + encodeURIComponent(q), function (res) {
|
||||||
var q2 = $.trim($inp.val().replace(/\n/g, ", "));
|
var q2 = $.trim($inp.val().replace(/\n/g, ", "));
|
||||||
if (q2 !== q) {
|
if (q2 !== q) {
|
||||||
return; // lost race
|
return; // lost race
|
||||||
|
|||||||
Reference in New Issue
Block a user