Remove inline javascript from user views

This commit is contained in:
Tom Hughes 2017-02-27 22:48:36 +00:00
parent 57443546f8
commit d13348c0ea
6 changed files with 37 additions and 27 deletions

View file

@ -38,6 +38,8 @@ OSM = {
OPEN_NOTE_MARKER: <%= image_path("open_note_marker.png").to_json %>,
CLOSED_NOTE_MARKER: <%= image_path("closed_note_marker.png").to_json %>,
SEARCHING: <%= image_path("searching.gif").to_json %>,
apiUrl: function (object) {
var url = "/api/" + OSM.API_VERSION + "/" + object.type + "/" + object.id;