X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/95d406937ee33c04d739bf199df669f0167a9ab4..2acf8cb8f22deb2e2960c99c0eeb8c5d64533c9e:/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 1891c5adc..6a68b6b2d 100644 --- a/app/assets/javascripts/edit/id.js.erb +++ b/app/assets/javascripts/edit/id.js.erb @@ -3,8 +3,9 @@ $(document).ready(function () { var id = $("#id-embed"); - if (id.data("key")) { - var hashParams = OSM.params(location.hash.substring(1)); + if (id.data("configured") === true) { + var hash = location.hash.substring(1); + var hashParams = hash ? OSM.params(hash) : {}; var mapParams = OSM.mapParams(); var params = {};