Add node version pages

This commit is contained in:
Anton Khorev 2024-01-14 02:05:36 +03:00
parent e71355c5bb
commit 85c284aaa6
11 changed files with 79 additions and 6 deletions

View file

@ -355,6 +355,16 @@ $(document).ready(function () {
return page;
};
OSM.OldBrowse = function () {
var page = {};
page.pushstate = page.popstate = function (path) {
OSM.loadSidebarContent(path);
};
return page;
};
var history = OSM.History(map);
OSM.router = OSM.Router(map, {
@ -369,6 +379,7 @@ $(document).ready(function () {
"/user/:display_name/history": history,
"/note/:id": OSM.Note(map),
"/node/:id(/history)": OSM.Browse(map, "node"),
"/node/:id/history/:version": OSM.OldBrowse(),
"/way/:id(/history)": OSM.Browse(map, "way"),
"/relation/:id(/history)": OSM.Browse(map, "relation"),
"/changeset/:id": OSM.Changeset(map),