From e30c6921f382a49a5f1ea03faf6765e95a0c0243 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 16 Dec 2015 10:18:21 +0200 Subject: [PATCH] Revert "changes to chats tpl" This reverts commit e612aa10c6a5daa921cc1fce29b89619cd81fb2a. --- lib/client/chats.js | 6 +++--- templates/chats.tpl | 19 +++++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/lib/client/chats.js b/lib/client/chats.js index 7ef4e58..39871f9 100644 --- a/lib/client/chats.js +++ b/lib/client/chats.js @@ -2,12 +2,12 @@ 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').off('click').on('click', 'li', function(e) { var env = utils.findBootstrapEnvironment(); if (env === 'xs' || env === 'sm') { - app.openChat($(this).attr('data-roomid')); + app.openChat($(this).attr('data-username'), $(this).attr('data-uid')); } else { - coreChats.switchChat($(this).attr('data-roomid')); + coreChats.switchChat(parseInt($(this).attr('data-uid'), 10), $(this).attr('data-username')); } }); }; diff --git a/templates/chats.tpl b/templates/chats.tpl index bc122cd..1925754 100644 --- a/templates/chats.tpl +++ b/templates/chats.tpl @@ -4,13 +4,12 @@
    - -
    - + - -
    - + + + +
@@ -20,11 +19,11 @@ [[error:chat-restricted]]
- -
+ +
-

{usernames}

+

{meta.username}

[[recent:title]][[modules:chat.seven_days]][[modules:chat.thirty_days]][[modules:chat.three_months]] @@ -42,6 +41,6 @@
[[modules:chat.no-messages]]
- +