From 7f64e2d1d8fc4edba921faa5afa54981800d801b Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 29 Oct 2015 21:55:08 -0400 Subject: [PATCH] human readable numbers for user card --- lib/persona.js | 2 ++ templates/modules/usercard.tpl | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/persona.js b/lib/persona.js index b93066f..5b2f38a 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -187,6 +187,8 @@ $(document).ready(function() { drop.css({top: y+'px', left: x+'px'}).addClass("animate"); }); + utils.makeNumbersHumanReadable($('.human-readable-number')); + card.on('mouseleave', function() { card.fadeOut(function() { card.remove(); diff --git a/templates/modules/usercard.tpl b/templates/modules/usercard.tpl index 34c59e2..e543d74 100644 --- a/templates/modules/usercard.tpl +++ b/templates/modules/usercard.tpl @@ -15,11 +15,11 @@
Posts - {postcount} + {postcount}
Reputation - {reputation} + {reputation}