moved format number functions to utils

This commit is contained in:
barisusakli
2014-03-31 14:43:44 -04:00
parent f01cb88c57
commit b1a6d394e3
11 changed files with 35 additions and 35 deletions

View File

@@ -44,7 +44,7 @@ define(['forum/pagination', 'forum/topic/threadTools', 'forum/topic/postTools'],
}
$(function() {
app.addCommasToNumbers();
utils.addCommasToNumbers($('.topic .formatted-number'));
app.enterRoom('topic_' + tid);
@@ -761,8 +761,8 @@ define(['forum/pagination', 'forum/topic/threadTools', 'forum/topic/postTools'],
app.populateOnlineUsers();
app.createUserTooltips();
app.addCommasToNumbers();
app.makeNumbersHumanReadable($('.human-readable-number'));
utils.addCommasToNumbers(html.find('.formatted-number'));
utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
html.find('span.timeago').timeago();
html.find('.post-content img').addClass('img-responsive');
updatePostCount();