mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
tippy: Use data-view-code to check atttribute.
This make it easy to grep for.
This commit is contained in:
@@ -230,7 +230,7 @@ export function initialize(): void {
|
|||||||
appendTo: () => document.body,
|
appendTo: () => document.body,
|
||||||
onShow(instance) {
|
onShow(instance) {
|
||||||
const $container = $(instance.popper).find(".views-tooltip-container");
|
const $container = $(instance.popper).find(".views-tooltip-container");
|
||||||
if ($container.data("view-code") === user_settings.web_home_view) {
|
if ($container.attr("data-view-code") === user_settings.web_home_view) {
|
||||||
$container.find(".views-tooltip-home-view-note").removeClass("hide");
|
$container.find(".views-tooltip-home-view-note").removeClass("hide");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user