mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
Update lib/client/menu.js
This commit is contained in:
parent
c9da2f0f3b
commit
3f618f9168
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue