clean up of posts and some template additions

This commit is contained in:
Baris Usakli
2013-11-28 15:18:19 -05:00
parent 38da65ee58
commit a87ebb64d8
8 changed files with 61 additions and 40 deletions

View File

@@ -297,8 +297,8 @@ var socket,
});
}
app.makeNumbersHumanReadable = function() {
$('.human-readable-number').each(function() {
app.makeNumbersHumanReadable = function(selector) {
$(selector).each(function() {
var num = parseInt($(this).html(), 10);
$(this).html(utils.makeNumberHumanReadable(num));
});
@@ -312,7 +312,7 @@ var socket,
$('span.timeago').timeago();
$('.post-content img').addClass('img-responsive');
app.makeNumbersHumanReadable();
app.makeNumbersHumanReadable('.human-readable-number');
app.createUserTooltips();