aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2012-06-24 03:24:35 -0400
committerTeddy Wing2012-06-24 03:24:35 -0400
commit37aacdb8b96c04ac750c08e4c0e0fd365857f0aa (patch)
tree9677d89551938f9b272d5b4324af01ce402b9988
parent1dea26b75ae76caff35e67f2853a676de532368b (diff)
downloadLikeFeed-37aacdb8b96c04ac750c08e4c0e0fd365857f0aa.tar.bz2
Fan count now converts >= one-million to '%dM', so you can actually see the number.
-rw-r--r--Resources/friendship/ui/LikeList.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/Resources/friendship/ui/LikeList.js b/Resources/friendship/ui/LikeList.js
index 663af81..93a7814 100644
--- a/Resources/friendship/ui/LikeList.js
+++ b/Resources/friendship/ui/LikeList.js
@@ -76,7 +76,7 @@
});
var fan_c = Ti.UI.createLabel({
- text: addCommas(key.fan_count),
+ text: addCommas( (key.fan_count >= 10000000) ? Math.round((key.fan_count / 1000000)) + 'M' : key.fan_count ),
font:{fontSize:10,fontWeight:'bold'},
//color:'#3b5997',
color:'white',