Update lib/client/menu.js

This commit is contained in:
coderaiser 2012-08-15 11:31:19 +03:00
parent edfc96107a
commit a4ad3c81c0

View file

@ -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);
});