From a4ad3c81c0627e5e1d3d529ced1afcaecfe650f8 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 15 Aug 2012 11:31:19 +0300 Subject: [PATCH] Update lib/client/menu.js --- lib/client/menu.js | 12 ------------ 1 file changed, 12 deletions(-) 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