diff --git a/lib/client/menu.js b/lib/client/menu.js index 0210e84a..ff672f99 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -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); }); \ No newline at end of file