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
3f618f9168
commit
e8fa3f8260
1 changed files with 5 additions and 5 deletions
|
|
@ -74,11 +74,11 @@ CloudCommander.Menu.set = (function(){
|
|||
$.contextMenu(this.getConfig());
|
||||
|
||||
var lThis = this;
|
||||
/* if woud be click */
|
||||
$("li").click(function(pEvent){
|
||||
$("li").contextMenu("hide");
|
||||
lThis.setCurrentFile(pEvent.target);
|
||||
})
|
||||
|
||||
$('li').addEventListener('contextmenu:hide',function(pEvent){
|
||||
console.log(pEvent);
|
||||
lThis.setCurrentFile(pEvent.target);
|
||||
}, false);
|
||||
|
||||
this.seted = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue