mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
Update lib/client/menu.js
This commit is contained in:
parent
0189cb7da7
commit
0b8f590bcc
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