From 0f6b718b6eaa08d129035b71ff2ad10841162cf6 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sun, 8 Oct 2017 08:36:56 +0000 Subject: [PATCH] Click mention user --- webapp/titanembeds/static/css/embedstyle.css | 4 ++++ webapp/titanembeds/static/js/embed.js | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/webapp/titanembeds/static/css/embedstyle.css b/webapp/titanembeds/static/css/embedstyle.css index 89c7c4c..c09a320 100644 --- a/webapp/titanembeds/static/css/embedstyle.css +++ b/webapp/titanembeds/static/css/embedstyle.css @@ -177,6 +177,10 @@ nav .brand-logo { margin-bottom: 11px; } +#chatcontent .chatusername { + cursor: pointer; +} + /*#chatcontent > p > span {*/ /* display: table-row*/ /*}*/ diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 6bb84d5..dceb298 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -877,6 +877,12 @@ target: "_blank" }); $('.tooltipped').tooltip(); + $("#chatcontent .chatusername").click(function () { + var discordid = $(this).parent().attr("discord_userid"); + if (discordid) { + mention_member(discordid); + } + }); process_message_users_cache(); return last; }