From ebd5616a0edf8bf279dfbb56edd50fcdd4c2052a Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 15 Aug 2012 12:02:43 +0300 Subject: [PATCH] Update lib/client/menu.js --- lib/client/menu.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; } });