X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/85c284aaa6e9ba8488de9d488f17fda4cd565d9c..5add2d7e1d1d365e80d1d4ef417ff249ca7f35c0:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 621054caf..eac3f82cc 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -381,7 +381,9 @@ $(document).ready(function () { "/node/:id(/history)": OSM.Browse(map, "node"), "/node/:id/history/:version": OSM.OldBrowse(), "/way/:id(/history)": OSM.Browse(map, "way"), + "/way/:id/history/:version": OSM.OldBrowse(), "/relation/:id(/history)": OSM.Browse(map, "relation"), + "/relation/:id/history/:version": OSM.OldBrowse(), "/changeset/:id": OSM.Changeset(map), "/query": OSM.Query(map) }); @@ -394,7 +396,7 @@ $(document).ready(function () { OSM.router.load(); $(document).on("click", "a", function (e) { - if (e.isDefaultPrevented() || e.isPropagationStopped()) { + if (e.isDefaultPrevented() || e.isPropagationStopped() || $(e.target).data("turbo")) { return; }