From 48bb1b06c256aee33a7752731ea5968dc4928b9a Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Mon, 12 Aug 2013 14:35:28 -0400 Subject: [PATCH] no need to store container --- public/src/forum/admin/users.js | 6 ++---- public/src/forum/users.js | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/public/src/forum/admin/users.js b/public/src/forum/admin/users.js index 436ff79a40..212358ec9d 100644 --- a/public/src/forum/admin/users.js +++ b/public/src/forum/admin/users.js @@ -140,10 +140,8 @@ }); function onUsersLoaded(users) { - var html = templates.prepare(templates['admin/users'].blocks['users']).parse({ users: users }), - container = $('#users-container'); - - container.append(html); + var html = templates.prepare(templates['admin/users'].blocks['users']).parse({ users: users }); + $('#users-container').append(html); } function loadMoreUsers() { diff --git a/public/src/forum/users.js b/public/src/forum/users.js index 6f77d4e5f3..1ceab27b4c 100644 --- a/public/src/forum/users.js +++ b/public/src/forum/users.js @@ -76,10 +76,8 @@ }); function onUsersLoaded(users) { - var html = templates.prepare(templates['users'].blocks['users']).parse({ users: users }), - container = $('#users-container'); - - container.append(html); + var html = templates.prepare(templates['users'].blocks['users']).parse({ users: users }); + $('#users-container').append(html); } function loadMoreUsers() {