mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
message_list_tooltips: Convert .data("is-bot") to .attr.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
87ea4313cd
commit
c2bae4c9d9
@@ -314,7 +314,7 @@ export function initialize(): void {
|
||||
message_list_tooltip(".view_user_card_tooltip", {
|
||||
delay: LONG_HOVER_DELAY,
|
||||
onShow(instance) {
|
||||
const is_bot = $(instance.reference).data("is-bot");
|
||||
const is_bot = $(instance.reference).attr("data-is-bot") === "true";
|
||||
if (is_bot) {
|
||||
instance.setContent(parse_html($("#view-bot-card-tooltip-template").html()));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user