mirror of https://github.com/zulip/zulip.git
message_list_tooltips: Convert .data("is-bot") to .attr.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
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 {
|
||||
|
|
Loading…
Reference in New Issue