X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a47c0a4411825f48e447641094678b15df3b2f74..712e67ed4a1429309075b484b87a42ca5da6b0a5:/app/assets/javascripts/edit/id.js.erb diff --git a/app/assets/javascripts/edit/id.js.erb b/app/assets/javascripts/edit/id.js.erb index 933031d8c..23726519e 100644 --- a/app/assets/javascripts/edit/id.js.erb +++ b/app/assets/javascripts/edit/id.js.erb @@ -1,4 +1,7 @@ +//= require querystring + $(document).ready(function () { + var querystring = require("querystring-component"); var id = $("#id-embed"); if (id.data("key")) { @@ -36,7 +39,7 @@ $(document).ready(function () { params.gpx = hashParams.gpx; } - id.attr("src", id.data("url") + "#" + qs.stringify(params)); + id.attr("src", id.data("url") + "#" + querystring.stringify(params)); } else { alert(I18n.t("site.edit.id_not_configured")); }