This commit is contained in:
barisusakli
2015-09-26 18:29:27 -04:00
parent 5e0a7d7dac
commit 1dc93f2446
6 changed files with 52 additions and 22 deletions

View File

@@ -246,7 +246,9 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
function getUserName(button) {
var username = '',
post = button.parents('[data-pid]');
if (button.attr('component') === 'topic/reply') {
return username;
}
if (post.length) {
username = post.attr('data-username').replace(/\s/g, '-');
}