diff options
Diffstat (limited to 'frontend/static/js/chat.js')
| -rw-r--r-- | frontend/static/js/chat.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/static/js/chat.js b/frontend/static/js/chat.js index bdcd4d8..689dad6 100644 --- a/frontend/static/js/chat.js +++ b/frontend/static/js/chat.js @@ -12,7 +12,8 @@ var Chat = callback: false, parse: function (row) { - var s = '<a href="/profile/' + row[2] + '" class="u">' + row[2] + "</a> <span>" + var domain = window.location.hostname.split('.').slice(-2).join('.') + var s = '<a href="http://'+row[2]+"."+domain+'/" class="u">' + row[2] + "</a> <span>" s += Chat.parseWords(row[3],row[0]) s += "</span><br />" return s @@ -276,9 +277,10 @@ var Lastlog = Lastlog.old = lastlog var names = lastlog.split("\t") var s = "" + var domain = window.location.hostname.split('.').slice(-2).join('.') for (i in names.sort()) { - s += "<li class='ll'><a href='/profile/"+names[i]+"'>"+names[i]+"</a></li>" + s += "<li class='ll'><a href='http://"+names[i]+"."+domain+"/'>"+names[i]+"</a></li>" } $("#lastlog").html(s) $("#lastlogbg").css("height", $("#lastlogbox").height()) |
