* [task#126485,start,0.2h] support to hide menu.

This commit is contained in:
dingyongliang
2024-08-20 09:12:31 +08:00
parent abeded6d49
commit 688ddab243
+16
View File
@@ -853,6 +853,14 @@ $('#menuNav .divider').on('contextmenu', function(event)
}
);
}
items.push(
{
text: langData.hide,
onClick: () => {
$divider.closest('li').remove();
}
}
);
zui.ContextMenu.show(
{
@@ -923,6 +931,14 @@ $(document).on('click', '.open-in-app,.show-in-app', function(e)
);
}
items.push(
{
text: langData.hide,
onClick: () => {
$btn.closest('li').remove();
}
}
);
zui.ContextMenu.show(
{
hideOthers: true,