X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/890153b2a6412a60f352f88fc3d8c80be14451fc..26d7f66fbdcd95bdbfebc9c995e206b53dca3ef3:/app/assets/javascripts/index/notes.js.erb diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 7336c49ec..6a7c50373 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -87,7 +87,7 @@ $(document).ready(function () { if (marker) { marker.setIcon(noteIcons[feature.properties.status]); - marker._popup.setContent(createPopupContent( + marker.setPopupContent(createPopupContent( marker, feature.properties, $(marker._popup._content).find("textarea").val() )); @@ -115,7 +115,7 @@ $(document).ready(function () { var size = bounds.getSize(); if (size <= OSM.MAX_NOTE_REQUEST_AREA) { - var url = "/api/" + OSM.API_VERSION + "/notes.json?bbox=" + bounds.toBBOX(); + var url = "/api/" + OSM.API_VERSION + "/notes.json?bbox=" + bounds.toBBoxString(); if (noteLoader) noteLoader.abort(); @@ -231,7 +231,7 @@ $(document).ready(function () { var popupContent = createPopupContent(marker, feature.properties); marker.setIcon(noteIcons[feature.properties.status]); - marker._popup.setContent(popupContent); + marker.setPopupContent(popupContent); } } });