From: Sarven Capadisli Date: Mon, 4 Jan 2010 09:29:41 +0000 (+0000) Subject: Trim whitespace from label's textContent X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d1998adb13e78728ea9479f3efab50e55d53b32c;p=quix0rs-gnu-social.git Trim whitespace from label's textContent --- diff --git a/js/util.js b/js/util.js index 048d3f1eb1..f7c54e469f 100644 --- a/js/util.js +++ b/js/util.js @@ -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() {