diff --git a/lib/client/menu.js b/lib/client/menu.js index 619804e5..85fa0266 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -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; } });