added profile views to users, little cleanup to use app.addCommasToNumbers

This commit is contained in:
Baris Soner Usakli
2013-08-16 13:03:56 -04:00
parent ff805a704d
commit 6690f49c4e
10 changed files with 25 additions and 39 deletions

View File

@@ -8,6 +8,8 @@
parts = url.split('/'),
active = parts[parts.length-1];
app.addCommasToNumbers();
jQuery('.nav-pills li').removeClass('active');
jQuery('.nav-pills li a').each(function() {
if (this.getAttribute('href').match(active)) {
@@ -67,13 +69,7 @@
});
$('.reputation').each(function(index, element) {
$(element).html(app.addCommas($(element).html()));
});
$('.postcount').each(function(index, element) {
$(element).html(app.addCommas($(element).html()));
});
function onUsersLoaded(users) {
var html = templates.prepare(templates['users'].blocks['users']).parse({ users: users });