mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
Update lib/client/menu.js
This commit is contained in:
parent
e7e59ca19c
commit
edfc96107a
1 changed files with 4 additions and 2 deletions
|
|
@ -81,8 +81,10 @@ CloudCommander.Menu.show = (function(pParent, pPosition){
|
|||
return function(){
|
||||
pParent.set();
|
||||
|
||||
$('li').contextMenu(pPosition ?
|
||||
(pPosition.x, pPosition.y) : () );
|
||||
if(pPosition && pPosition.x && pPosition.y)
|
||||
$('li').contextMenu(pPosition.x, pPosition.y)
|
||||
else
|
||||
$('li').contextMenu();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue