mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
Update lib/client/menu.js
This commit is contained in:
parent
9ac68f9bfa
commit
e43da5293e
1 changed files with 5 additions and 2 deletions
|
|
@ -91,7 +91,10 @@ CloudCommander.Menu.set = (function(){
|
|||
document.onclick = function(pEvent){
|
||||
if(pEvent.x && pEvent.y){
|
||||
var lLayer = lThis.getById('context-menu-layer')
|
||||
var lStyle = lLayer.style.cssText;
|
||||
var lStyle;
|
||||
|
||||
if(lLayer)
|
||||
lStyle = lLayer.style.cssText;
|
||||
/* hide invisible menu layer */
|
||||
if(lStyle)
|
||||
lLayer.style.cssText = lStyle
|
||||
|
|
@ -107,7 +110,7 @@ CloudCommander.Menu.set = (function(){
|
|||
.parentElement);
|
||||
|
||||
/* show invisible menu layer */
|
||||
if(lStyle)
|
||||
if(lLayer && lStyle)
|
||||
lLayer.style.cssText = lStyle;
|
||||
|
||||
/* if document.onclick was set up
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue