X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/783b5e3729228908d7404ae7404af1023501a906..c8e21c409c9bec446f0caa2526d5b07861bb3299:/app/assets/javascripts/edit/id.js.erb?ds=inline diff --git a/app/assets/javascripts/edit/id.js.erb b/app/assets/javascripts/edit/id.js.erb index 23726519e..3937f7381 100644 --- a/app/assets/javascripts/edit/id.js.erb +++ b/app/assets/javascripts/edit/id.js.erb @@ -1,7 +1,6 @@ -//= require querystring +//= require qs/dist/qs $(document).ready(function () { - var querystring = require("querystring-component"); var id = $("#id-embed"); if (id.data("key")) { @@ -28,7 +27,10 @@ $(document).ready(function () { if (hashParams.locale) params.locale = hashParams.locale; if (hashParams.maprules) params.maprules = hashParams.maprules; if (hashParams.offset) params.offset = hashParams.offset; + if (hashParams.photo) params.photo = hashParams.photo; + if (hashParams.photo_dates) params.photo_dates = hashParams.photo_dates; if (hashParams.photo_overlay) params.photo_overlay = hashParams.photo_overlay; + if (hashParams.photo_username) params.photo_username = hashParams.photo_username; if (hashParams.presets) params.presets = hashParams.presets; if (hashParams.source) params.source = hashParams.source; if (hashParams.walkthrough) params.walkthrough = hashParams.walkthrough; @@ -39,7 +41,7 @@ $(document).ready(function () { params.gpx = hashParams.gpx; } - id.attr("src", id.data("url") + "#" + querystring.stringify(params)); + id.attr("src", id.data("url") + "#" + Qs.stringify(params)); } else { alert(I18n.t("site.edit.id_not_configured")); }