Update lib/client/menu.js

This commit is contained in:
coderaiser 2012-08-15 12:02:43 +03:00
parent c9da2f0f3b
commit 3f618f9168

View file

@ -71,7 +71,15 @@ CloudCommander.Menu.load = (function(pParent, pPosition){
CloudCommander.Menu.set = (function(){
if(!this.seted){
$.contextMenu(this.getConfig());
$.contextMenu(this.getConfig());
var lThis = this;
/* if woud be click */
$("li").click(function(pEvent){
$("li").contextMenu("hide");
lThis.setCurrentFile(pEvent.target);
})
this.seted = true;
}
});