mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +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,
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user