mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(menu) clickProcessing: layer -> root
This commit is contained in:
parent
72d5841a9e
commit
bf616029e8
1 changed files with 1 additions and 14 deletions
|
|
@ -274,21 +274,9 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
});
|
||||
}
|
||||
|
||||
/*
|
||||
* Menu works in some crazy way so need a
|
||||
* little hack to get every thing work out.
|
||||
* When menu shows up, it draws invisible
|
||||
* layer wich hides all elements of
|
||||
* Cloud Commander so it could not handle
|
||||
* onclick events. To get every thing work
|
||||
* how expected we hide invisible layer
|
||||
* so for observer it is nothing special
|
||||
* is not going on. All magic happening in
|
||||
* DOM tree.
|
||||
*/
|
||||
function clickProcessing() {
|
||||
var element, isCurrent,
|
||||
layer = DOM.getById('context-menu-layer');
|
||||
layer = DOM.getById('context-menu-root');
|
||||
|
||||
if (layer) {
|
||||
DOM.hide(layer);
|
||||
|
|
@ -299,7 +287,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
if (!isCurrent)
|
||||
DOM.setCurrentFile(element);
|
||||
|
||||
DOM.show(layer);
|
||||
Key.setBind();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue