From 43a1ce66a14e4950d16e243c4d3210058f8791bb Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sat, 4 Jan 2014 19:20:59 -0500 Subject: [PATCH] added relative_path to recent_replies and browsing users --- public/src/forum/category.js | 4 ++-- public/src/forum/topic.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/src/forum/category.js b/public/src/forum/category.js index 0472569989..c01a22b226 100644 --- a/public/src/forum/category.js +++ b/public/src/forum/category.js @@ -53,8 +53,8 @@ define(['composer'], function(composer) { li.setAttribute('data-pid', posts[i].pid); - li.innerHTML = '' + - '' + + li.innerHTML = '' + + '' + ''+ posts[i].username + '' + '

' + posts[i].content + diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 788a0c1718..0a64153249 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -406,10 +406,10 @@ define(['composer'], function(composer) { var activeEl = $('.thread_active_users'); function createUserIcon(uid, picture, userslug, username) { - if(!activeEl.find("[href='/user/"+ data.users[i].userslug + "']").length) { + if(!activeEl.find('[href="'+ RELATIVE_PATH +'/user/' + data.users[i].userslug + '"]').length) { var userIcon = $(''); - var userLink = $('').append(userIcon); + var userLink = $('').append(userIcon); userLink.attr('data-uid', uid); var div = $('

');