stricter selector for human readable numbers

This commit is contained in:
Baris Usakli
2013-11-29 14:18:06 -05:00
parent f6d57a241d
commit 1660d75205
4 changed files with 6 additions and 6 deletions

View File

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