X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d41737c6a0e4a639545268e09e438575f92e7709..a566589c1becb18ad2d12623d0ff240ea279d8e6:/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 3937f7381..02299d215 100644 --- a/app/assets/javascripts/edit/id.js.erb +++ b/app/assets/javascripts/edit/id.js.erb @@ -3,7 +3,7 @@ $(document).ready(function () { var id = $("#id-embed"); - if (id.data("key")) { + if (id.data("configured") === true) { var hashParams = OSM.params(location.hash.substring(1)); var mapParams = OSM.mapParams(); var params = {}; @@ -33,6 +33,9 @@ $(document).ready(function () { 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")) {