]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/note.js
Eliminate templating from most javascript
[rails.git] / app / assets / javascripts / index / note.js
similarity index 94%
rename from app/assets/javascripts/index/note.js.erb
rename to app/assets/javascripts/index/note.js
index 2c9e42210008bf6b1653d5d530233d114090e51e..2d4a8decff96e87ece810aa4c506e00a8c3eea6c 100644 (file)
@@ -6,17 +6,17 @@ OSM.Note = function (map) {
 
   var noteIcons = {
     "new": L.icon({
-      iconUrl: "<%= image_path('new_note_marker.png') %>",
+      iconUrl: OSM.NEW_NOTE_MARKER,
       iconSize: [25, 40],
       iconAnchor: [12, 40]
     }),
     "open": L.icon({
-      iconUrl: "<%= image_path('open_note_marker.png') %>",
+      iconUrl: OSM.OPEN_NOTE_MARKER,
       iconSize: [25, 40],
       iconAnchor: [12, 40]
     }),
     "closed": L.icon({
-      iconUrl: "<%= image_path('closed_note_marker.png') %>",
+      iconUrl: OSM.CLOSED_NOTE_MARKER,
       iconSize: [25, 40],
       iconAnchor: [12, 40]
     })