mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
tippy: Use data-view-code to check atttribute.
This make it easy to grep for.
This commit is contained in:
parent
469cc53187
commit
b1eef20fd5
@ -230,7 +230,7 @@ export function initialize(): void {
|
||||
appendTo: () => document.body,
|
||||
onShow(instance) {
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user