* [perf] Add hideContextMenu clickContextMenu js function for ajaxgetdropmenuforold

This commit is contained in:
wangyidong
2024-08-02 15:29:30 +08:00
committed by 孙广明
parent 0b42c8af90
commit 7d822c9d2c
@@ -312,4 +312,20 @@ window.updateAllDot = function(showCount)
}
});
};
window.hideContextMenu = function()
{
if($.zui.ContextMenu.isShow()) $.zui.ContextMenu.hide();
contextmenuEle = null;
};
window.clickContextMenu = function(item)
{
if(contextmenuEle == null) return;
let action = item.value;
let $this = contextmenuEle;
if(action == 'delete') deleteMessage($this);
if(action == 'markunread') markUnread($this);
};
</script>