Trim the name before being displayed as the tooltip.

This commit is contained in:
Madhura Jayaratne 2011-07-12 14:21:48 +05:30
parent b9e5125870
commit e7135574bd

View File

@ -224,7 +224,7 @@ $(document).ready(function() {
*/
$('.polygon, .multipolygon, .point, .multipoint, .linestring, .multilinestring, '
+ '.geometrycollection').live('mousemove', function(event) {
contents = $(this).attr('name');
contents = $.trim($(this).attr('name'));
$("#tooltip").remove();
if (contents != '') {
$('<div id="tooltip">' + contents + '</div>').css({