mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
added pPosition of menu parameter
This commit is contained in:
parent
d08156a1aa
commit
1b048852a1
1 changed files with 7 additions and 8 deletions
15
client.js
15
client.js
|
|
@ -639,12 +639,14 @@ CloudClient.Terminal = (function(){
|
|||
});
|
||||
});
|
||||
|
||||
/* function loads and shows menu */
|
||||
CloudClient.Menu = (function(){
|
||||
/* function loads and shows menu
|
||||
* @pPosition - coordinates of menu {x, y}
|
||||
*/
|
||||
CloudClient.Menu = (function(pPosition){
|
||||
Util.jsload(CloudClient.LIBDIRCLIENT +
|
||||
'menu.js',{
|
||||
onload: (function(){
|
||||
CloudCommander.Menu.Keys();
|
||||
CloudCommander.Menu.Keys(pPosition);
|
||||
})
|
||||
});
|
||||
});
|
||||
|
|
@ -996,11 +998,8 @@ CloudClient._changeLinks = function(pPanelID){
|
|||
lLi.onclick = CloudClient._setCurrent();
|
||||
|
||||
lLi.oncontextmenu = function(pEvent){
|
||||
if(typeof CloudCommander.Menu === 'function'){
|
||||
CloudCommander.Menu.x = pEvent.x;
|
||||
CloudCommander.Menu.y = pEvent.y;
|
||||
|
||||
CloudCommander.Menu();
|
||||
if(typeof CloudCommander.Menu === 'function'){
|
||||
CloudCommander.Menu({pEvent.x, pEvent.y});
|
||||
}else
|
||||
CloudCommander.Menu.show();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue