fix(menu) clickProcessing: layer -> root

This commit is contained in:
coderaiser 2014-04-04 07:14:59 -04:00
parent 72d5841a9e
commit bf616029e8

View file

@ -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();
}
}