From a98856a922b0857eeaba7e7d950cbe7d0c637a6b Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Sat, 4 Jan 2014 12:41:12 +0100 Subject: [PATCH] click on usernames to private chat --- public/javascripts/big.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/javascripts/big.js b/public/javascripts/big.js index 6299813bc3..adf6503985 100644 --- a/public/javascripts/big.js +++ b/public/javascripts/big.js @@ -898,6 +898,10 @@ var storage = { self.element.find('> .off').click(function() { self._send('/close'); }); + self.$lines.on('click', 'div.user', function(e) { + self.query($(this).data('id')); + e.preventDefault(); + }); self.element.on('click', '.tabs > a', function() { var tab = $(this).data('tab'); self.element.find('.tabs > a').removeClass('active').filter('.' + tab).addClass('active'); @@ -1051,7 +1055,7 @@ var storage = { return '
' + (sys ? '
' + line.html + '
' : - '
' + $.userLinkLimit(line.user, 14, color) + '
' + + '
' + $.userLinkLimit(line.user, 14, color) + '
' + '
' + line.html + '
') + '
'; }