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
da48c6ed0e
commit
f473b8cb3f
1 changed files with 6 additions and 5 deletions
|
|
@ -63,7 +63,10 @@ CloudCommander.Menu.seted = false;
|
|||
CloudCommander.Menu.show = (function(pParent){
|
||||
return function(){
|
||||
pParent.set();
|
||||
$('li').contextMenu();
|
||||
|
||||
var lTag = event.target.nodeName;
|
||||
if(lTag === 'SPAN' || lTag === 'A'
|
||||
$('li').contextMenu();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -102,10 +105,8 @@ CloudCommander.Menu.Keys = (function(){
|
|||
};
|
||||
}
|
||||
|
||||
/* showing context menu preview*/
|
||||
if(lTag === 'SPAN' || lTag === 'A')
|
||||
CloudCommander.Menu.show();
|
||||
else CloudCommander.Menu.set();
|
||||
/* showing context menu preview*/
|
||||
CloudCommander.Menu.show();
|
||||
});
|
||||
|
||||
CloudCommander.Menu.load(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue