X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e0b175d3bd3ef655a20273dc2b7f04a8a34bb5f6..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 a85fcef45..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")) { @@ -20,10 +23,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")) {