From 5f057d1d95d00294472edcbfbc17cfec4dfb561d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Dec 2012 05:35:44 -0500 Subject: fix /profile links with username.sj.com --- frontend/static/js/chat.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'frontend/static/js/chat.js') 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 = '' + row[2] + " " + var domain = window.location.hostname.split('.').slice(-2).join('.') + var s = '' + row[2] + " " s += Chat.parseWords(row[3],row[0]) s += "
" 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 += "
  • "+names[i]+"
  • " + s += "
  • "+names[i]+"
  • " } $("#lastlog").html(s) $("#lastlogbg").css("height", $("#lastlogbox").height()) -- cgit v1.2.3-70-g09d2