]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Trim whitespace from label's textContent
authorSarven Capadisli <csarven@status.net>
Mon, 4 Jan 2010 09:29:41 +0000 (09:29 +0000)
committerSarven Capadisli <csarven@status.net>
Mon, 4 Jan 2010 09:29:41 +0000 (09:29 +0000)
js/util.js

index 048d3f1eb146752a443916570baaffe52e438ab4..f7c54e469f65a5c5c782685c2b72cb9345ce13a3 100644 (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() {