X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a5e8b4cb88c9e933955cfd6beea01fb14ffe13f5..d0de36b6072b7e8ee0083e680ebf6a21d5b81ab8:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 365d33e3a..ba1f08407 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -242,19 +242,18 @@ $(document).ready(function () { return page; }; - var history = OSM.History(map), - note = OSM.Note(map); + var history = OSM.History(map); OSM.route = OSM.Router(map, { "/": OSM.Index(map), "/search": OSM.Search(map), "/export": OSM.Export(map), - "/history": history, "/new_note": OSM.NewNote(map), + "/history": history, "/user/:display_name/edits": history, "/browse/friends": history, "/browse/nearby": history, - "/browse/note/:id": note, + "/browse/note/:id": OSM.Note(map), "/browse/:type/:id(/history)": OSM.Browse(map) });