X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7a64ebe98265ff8ad6be5b8be9481661cd824f0f..04dcea6f1fecf69893e6c3cb271396d817beaa87:/app/assets/javascripts/edit/id.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/edit/id.js.erb b/app/assets/javascripts/edit/id.js.erb index a85fcef45..8ab9425e2 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"); @@ -20,10 +22,14 @@ $(document).ready(function () { if (hashParams.background) params.background = hashParams.background; if (hashParams.comment) params.comment = hashParams.comment; - if (hashParams.hashtags) params.hashtags = hashParams.hashtags; - if (hashParams.source) params.source = hashParams.source; if (hashParams.disable_features) params.disable_features = hashParams.disable_features; + if (hashParams.hashtags) params.hashtags = hashParams.hashtags; + if (hashParams.locale) params.locale = hashParams.locale; + if (hashParams.maprules) params.maprules = hashParams.maprules; if (hashParams.offset) params.offset = hashParams.offset; + if (hashParams.photo_overlay) params.photo_overlay = hashParams.photo_overlay; + if (hashParams.presets) params.presets = hashParams.presets; + if (hashParams.source) params.source = hashParams.source; if (hashParams.walkthrough) params.walkthrough = hashParams.walkthrough; if (id.data("gpx")) { @@ -32,7 +38,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")); }