diff --git a/src/static/js/chat.js b/src/static/js/chat.js
index 2dff2edf..83a487de 100644
--- a/src/static/js/chat.js
+++ b/src/static/js/chat.js
@@ -111,7 +111,7 @@ var chat = (function()
var authorName = msg.userName == null ? _('pad.userlist.unnamed') : padutils.escapeHtml(msg.userName);
- var html = "
" + authorName + ":" + timeStr + " " + text + "
";
+ var html = "" + authorName + ":" + timeStr + " " + text + "
";
if(isHistoryAdd)
$(html).insertAfter('#chatloadmessagesbutton');
else
diff --git a/src/static/js/pad_userlist.js b/src/static/js/pad_userlist.js
index 962595d2..c8f8e2c9 100644
--- a/src/static/js/pad_userlist.js
+++ b/src/static/js/pad_userlist.js
@@ -119,9 +119,9 @@ var paduserlist = (function()
return [' | ', '', nameHtml, ' | ', '', padutils.escapeHtml(data.activity), ' | '].join('');
}
- function getRowHtml(id, innerHtml)
+ function getRowHtml(id, innerHtml, authorId)
{
- return '' + innerHtml + '
';
+ return '' + innerHtml + '
';
}
function rowNode(row)
@@ -191,18 +191,20 @@ var paduserlist = (function()
domId: domId,
animationPower: animationPower
};
+ var authorId = data.id;
+
handleRowData(row);
rowsPresent.splice(position, 0, row);
var tr;
if (animationPower == 0)
{
- tr = $(getRowHtml(domId, getUserRowHtml(getAnimationHeight(0), data)));
+ tr = $(getRowHtml(domId, getUserRowHtml(getAnimationHeight(0), data), authorId));
row.animationStep = 0;
}
else
{
rowsFadingIn.push(row);
- tr = $(getRowHtml(domId, getEmptyRowHtml(getAnimationHeight(ANIMATION_START))));
+ tr = $(getRowHtml(domId, getEmptyRowHtml(getAnimationHeight(ANIMATION_START)), authorId));
}
handleRowNode(tr, data);
if (position == 0)