mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
Update lib/client/menu.js
This commit is contained in:
parent
3d316e7225
commit
c6661cd872
1 changed files with 9 additions and 6 deletions
|
|
@ -108,15 +108,18 @@ CloudCommander.Menu.Keys = (function(){
|
|||
/* showing context menu preview*/
|
||||
CloudCommander.Menu.show();
|
||||
});
|
||||
|
||||
CloudCommander.Menu.load(this);
|
||||
|
||||
|
||||
var lThis = this;
|
||||
document.onmousedown = function(){
|
||||
var lTag = event.target.nodeName;
|
||||
if(event.button === CloudCommander.MOUSE_BUTTON.RIGHT &&
|
||||
lTag === 'SPAN' ||
|
||||
lTag === 'A')
|
||||
CloudCommander.Menu.show();
|
||||
if(lTag === 'SPAN')
|
||||
lThis.setCurrentFile(event.target.parentElement.parentElement)
|
||||
else if(lTag === 'A')
|
||||
lThis.setCurrentFile(event.target.parentElement)
|
||||
|
||||
CloudCommander.Menu.show();
|
||||
};
|
||||
|
||||
CloudCommander.Menu.load(this);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue