diff options
| author | root <root@lalalizard.com> | 2012-12-27 05:35:44 -0500 |
|---|---|---|
| committer | root <root@lalalizard.com> | 2012-12-27 05:38:54 -0500 |
| commit | 5f057d1d95d00294472edcbfbc17cfec4dfb561d (patch) | |
| tree | 861801786d4a7f06989396920c9911640fdea97d /frontend/static/js/chat.js | |
| parent | 321cbf72d3019af40e2b9aacd68e5946df0c75a1 (diff) | |
fix /profile links with username.sj.com
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()) |
