From: Chuck Scott Date: Thu, 21 May 2015 15:28:27 +0000 (-0400) Subject: Fixed broken javascript due to names with apostrophes in them. X-Git-Tag: v1.0.0~12 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c4e67d27fb5c4b5b5ea3d2865bcd9f7e4861b1f2;p=WP-Plugins%2Fglm-member-db.git Fixed broken javascript due to names with apostrophes in them. --- diff --git a/views/front/members/detail.html b/views/front/members/detail.html index 7dc072e8..f72585a1 100644 --- a/views/front/members/detail.html +++ b/views/front/members/detail.html @@ -125,7 +125,7 @@ position: new google.maps.LatLng({$member.lat}, {$member.lon}), draggable: false, animation: google.maps.Animation.DROP, - title: '{$member.member}' + title: '{$member.member|escape}' }); // Try HTML5 to get user geolocation diff --git a/views/front/members/list.html b/views/front/members/list.html index 57c3d5c9..e693891b 100644 --- a/views/front/members/list.html +++ b/views/front/members/list.html @@ -233,7 +233,7 @@ position: new google.maps.LatLng({$m.lat}, {$m.lon}), draggable: false, animation: google.maps.Animation.DROP, - title: '{$m.member}', + title: '{$m.member|escape}', descr: $('#map_info_' + {$m.id}).html(), memberID: {$m.id} });