From 3e8f7c15f9e7de82bd16d9ea98f566c3ca65eb98 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 8 Jan 2016 12:32:57 +0200 Subject: [PATCH] https://github.com/NodeBB/NodeBB/issues/3977 --- less/chats.less | 7 +++++++ lib/client/chats.js | 2 +- templates/chats.tpl | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/less/chats.less b/less/chats.less index 882d1d6..aa6e3b6 100644 --- a/less/chats.less +++ b/less/chats.less @@ -83,6 +83,13 @@ font-size: 20px; top: 10px; } + + .leave { + opacity: 0.5; + &:hover { + opacity: 1.0; + } + } } } diff --git a/lib/client/chats.js b/lib/client/chats.js index 7ef4e58..f0d7544 100644 --- a/lib/client/chats.js +++ b/lib/client/chats.js @@ -2,7 +2,7 @@ define('persona/chats', ['components', 'forum/chats'], function(components, core var Chats = {}; Chats.init = function() { - components.get('chat/recent').off('click').on('click', '[component="chat/recent/room"]', function(e) { + components.get('chat/recent').on('click', '[component="chat/recent/room"]', function(e) { var env = utils.findBootstrapEnvironment(); if (env === 'xs' || env === 'sm') { app.openChat($(this).attr('data-roomid')); diff --git a/templates/chats.tpl b/templates/chats.tpl index 1cc1799..57ada5d 100644 --- a/templates/chats.tpl +++ b/templates/chats.tpl @@ -6,6 +6,7 @@