Trim whitespace from label's textContent

This commit is contained in:
Sarven Capadisli 2010-01-04 09:29:41 +00:00
parent 9f9dcd2bf5
commit d1998adb13

View File

@ -447,7 +447,7 @@ var SN = { // StatusNet
var NLE = $('#notice_data-location_wrap');
var geocodeURL = NLE.attr('title');
$('label[for='+SN.C.S.NoticeDataGeo+']').attr('title', NLE.text());
$('label[for='+SN.C.S.NoticeDataGeo+']').attr('title', jQuery.trim($('label[for='+SN.C.S.NoticeDataGeo+']').text()));
if (navigator.geolocation) {
NDG.change(function() {