mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
little hack for getting mouse click
little hack for getting mouse click when context menu is hiding, no need to set all event handlers to document
This commit is contained in:
parent
f2ebf27252
commit
aeff72e24a
1 changed files with 4 additions and 2 deletions
|
|
@ -286,7 +286,8 @@ var // currently active contextMenu trigger
|
|||
mouseenter: function(e) {
|
||||
var $this = $(this),
|
||||
$related = $(e.relatedTarget),
|
||||
$document = $(document);
|
||||
//$document = $(document);
|
||||
$document = $('li');
|
||||
|
||||
// abort if we're coming from a menu
|
||||
if ($related.is('.context-menu-list') || $related.closest('.context-menu-list').length) {
|
||||
|
|
@ -1204,7 +1205,8 @@ $.contextMenu = function(operation, options) {
|
|||
|
||||
// merge with default options
|
||||
var o = $.extend(true, {}, defaults, options || {}),
|
||||
$document = $(document);
|
||||
//$document = $(document);
|
||||
$document = $('li');
|
||||
|
||||
switch (operation) {
|
||||
case 'create':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue