projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
168a9fc
)
Use new Leaflet setPopupContent method
author
Tom Hughes
<tom@compton.nu>
Thu, 27 Jun 2013 21:40:23 +0000
(22:40 +0100)
committer
Tom Hughes
<tom@compton.nu>
Thu, 27 Jun 2013 21:40:23 +0000
(22:40 +0100)
app/assets/javascripts/index/notes.js.erb
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/index/notes.js.erb
b/app/assets/javascripts/index/notes.js.erb
index 2121c21a7cff27dbcaf9176708af34b047cf9e94..6a7c50373d8173207c0e7439d45d55a15c3d64e4 100644
(file)
--- 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.set
Content(createPopupContent(
+ marker.
setPopup
Content(createPopupContent(
marker, feature.properties,
$(marker._popup._content).find("textarea").val()
));
@@
-231,7
+231,7
@@
$(document).ready(function () {
var popupContent = createPopupContent(marker, feature.properties);
marker.setIcon(noteIcons[feature.properties.status]);
- marker.
_popup.set
Content(popupContent);
+ marker.
setPopup
Content(popupContent);
}
}
});