mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +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
a512c44a19
commit
677de4bba2
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