Click mention user

This commit is contained in:
Jeremy Zhang 2017-10-08 08:36:56 +00:00
parent 6fef2853cd
commit 0f6b718b6e
2 changed files with 10 additions and 0 deletions

View File

@ -177,6 +177,10 @@ nav .brand-logo {
margin-bottom: 11px; margin-bottom: 11px;
} }
#chatcontent .chatusername {
cursor: pointer;
}
/*#chatcontent > p > span {*/ /*#chatcontent > p > span {*/
/* display: table-row*/ /* display: table-row*/
/*}*/ /*}*/

View File

@ -877,6 +877,12 @@
target: "_blank" target: "_blank"
}); });
$('.tooltipped').tooltip(); $('.tooltipped').tooltip();
$("#chatcontent .chatusername").click(function () {
var discordid = $(this).parent().attr("discord_userid");
if (discordid) {
mention_member(discordid);
}
});
process_message_users_cache(); process_message_users_cache();
return last; return last;
} }