Ignore:
Timestamp:
Jun 15, 2012, 7:28:42 PM (9 years ago)
Author:
kake
Message:

Fixed a JavaScript? escaping issue for nodes with apostrophes in names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/node.tt

    r1370 r1413  
    11[% USE CGI %]
     2[% USE JSON.Escape %]
    23[% INCLUDE header.tt %]
    34[% INCLUDE banner.tt %]
     
    2829        marker = new L.Marker( position, { icon: new gicon() } );
    2930        map.addLayer( marker );
    30         marker.bindPopup( '[% node_name %]' );
     31        marker.bindPopup( [% node_name.json %] );
    3132      }
    3233    </script>
Note: See TracChangeset for help on using the changeset viewer.