X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11cc4a5e601dd288d601e6e35a72d159062f18b5..f6a1700ef675bf3787cc55c541d3318308f03c98:/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 7755195d4..1891c5adc 100644 --- a/app/assets/javascripts/edit/id.js.erb +++ b/app/assets/javascripts/edit/id.js.erb @@ -1,3 +1,5 @@ +//= require qs/dist/qs + $(document).ready(function () { var id = $("#id-embed"); @@ -25,9 +27,15 @@ $(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.validationDisable) params.validationDisable = hashParams.validationDisable; + if (hashParams.validationWarning) params.validationWarning = hashParams.validationWarning; + if (hashParams.validationError) params.validationError = hashParams.validationError; if (hashParams.walkthrough) params.walkthrough = hashParams.walkthrough; if (id.data("gpx")) { @@ -36,7 +44,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")); }