X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/59f1a6d49644143bfe643e0cabaaea72792fa5db..e4504399ae55525f22a7fb47e0c47434cef8cf0a:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 7d2e954ad..057fa1314 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -10,6 +10,7 @@ //= require index/export //= require index/notes //= require index/history +//= require index/note //= require router $(document).ready(function () { @@ -279,7 +280,8 @@ $(document).ready(function () { return page; }; - var history = OSM.History(map); + var history = OSM.History(map), + note = OSM.Note(map); OSM.route = OSM.Router({ "/": OSM.Index(map), @@ -289,6 +291,7 @@ $(document).ready(function () { "/user/:display_name/edits": history, "/browse/friends": history, "/browse/nearby": history, + "/browse/note/:id": note, "/browse/:type/:id(/history)": OSM.Browse(map) });