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