jQuery: The Write Less, Do More JavaScript Library

Global function to cancel the context menu

Project:ContextMenu
Version:0.2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I added the context menu to a sortable and found that the context menu did not go away when I initiated a sort. I had a need then to be able to cancel (hide) the context menu from an outside source. In my case this was the start event of the sortable. To facilitate this I simply exposed the existing internal hide() function in the same way the defaults() function is exposed. I have attached the patched version of the plugin.

AttachmentSize
jquery.contextmenu.js_.txt4.38 KB