X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a70b61315c2331c18123a0b36782d6ef6bb3ab3e..d423ae91370b08dcad6ccba041c2e234659531ec:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 236ed44fc..df975db48 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -13,6 +13,7 @@ //= require index/history //= require index/note //= require index/new_note +//= require index/changeset //= require index/query //= require router @@ -302,7 +303,7 @@ $(document).ready(function () { "/node/:id(/history)": OSM.Browse(map, 'node'), "/way/:id(/history)": OSM.Browse(map, 'way'), "/relation/:id(/history)": OSM.Browse(map, 'relation'), - "/changeset/:id": OSM.Browse(map, 'changeset'), + "/changeset/:id": OSM.Changeset(map), "/query": OSM.Query(map) }); @@ -336,7 +337,7 @@ $(document).ready(function () { if (query) { OSM.router.route("/search?query=" + encodeURIComponent(query) + OSM.formatHash(map)); } else { - OSM.router.route("/" + OSM.formatHash(map)); + OSM.router.route("/"); } });