summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-01-04 09:29:41 +0000
committerSarven Capadisli <csarven@status.net>2010-01-04 09:29:41 +0000
commitd1998adb13e78728ea9479f3efab50e55d53b32c (patch)
tree0905d7d49e1accd263f4f670a6bda1733848f966
parent9f9dcd2bf5e0343bb23b01fde65e61b83d80b702 (diff)
Trim whitespace from label's textContent
-rw-r--r--js/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js
index 048d3f1eb..f7c54e469 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() {