Author: kake
Date: 2012-06-15 19:28:42 +0100 (Fri, 15 Jun 2012)
New Revision: 1413
Modified:
trunk/Changes
trunk/templates/node.tt
Log:
Fixed a JavaScript escaping issue for nodes with apostrophes in names.
Modified: trunk/Changes
===================================================================
--- trunk/Changes 2012-06-04 20:18:13 UTC (rev 1412)
+++ trunk/Changes 2012-06-15 18:28:42 UTC (rev 1413)
@@ -5,6 +5,7 @@
0.69 ?
The output of the "show_missing_metadata" action is now alphabetised.
+ Fixed a JavaScript escaping issue for nodes with apostrophes in names.
0.68 21 May 2012
Made sure that maps are centred and zoomed properly even when they only
Modified: trunk/templates/node.tt
===================================================================
--- trunk/templates/node.tt 2012-06-04 20:18:13 UTC (rev 1412)
+++ trunk/templates/node.tt 2012-06-15 18:28:42 UTC (rev 1413)
@@ -1,4 +1,5 @@
[% USE CGI %]
+[% USE JSON.Escape %]
[% INCLUDE header.tt %]
[% INCLUDE banner.tt %]
@@ -27,7 +28,7 @@
var position = new L.LatLng( [% wgs84_lat %], [% wgs84_long %] );
marker = new L.Marker( position, { icon: new gicon() } );
map.addLayer( marker );
- marker.bindPopup( '[% node_name %]' );
+ marker.bindPopup( [% node_name.json %] );
}
</script>
[% ELSIF gmaps_api_key %]