diff options
Diffstat (limited to 'demos/tooltip/custom-content.html')
-rw-r--r-- | demos/tooltip/custom-content.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/tooltip/custom-content.html b/demos/tooltip/custom-content.html index d6ce27f69..3b3308153 100644 --- a/demos/tooltip/custom-content.html +++ b/demos/tooltip/custom-content.html @@ -30,9 +30,11 @@ content: function() { var element = $( this ); if ( element.is( "[data-geo]" ) ) { - return "<img class='map' src='http://maps.google.com/maps/api/staticmap?" + + var text = element.text(); + return "<img class='map' alt='" + text + + "' src='http://maps.google.com/maps/api/staticmap?" + "zoom=11&size=350x350&maptype=terrain&sensor=false¢er=" + - element.text() + "'>"; + text + "'>"; } if ( element.is( "[title]" ) ) { return element.attr( "title" ); |