From bf616029e8db4f14d0ddc2529c35d959d0a2db61 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 4 Apr 2014 07:14:59 -0400 Subject: [PATCH] fix(menu) clickProcessing: layer -> root --- lib/client/menu.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/client/menu.js b/lib/client/menu.js index a629af84..f6667a69 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -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(); } }