diff --git a/lib/client/menu.js b/lib/client/menu.js index a3a6a3de..5e657019 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -63,7 +63,10 @@ CloudCommander.Menu.seted = false; CloudCommander.Menu.show = (function(pParent){ return function(){ pParent.set(); - $('li').contextMenu(); + + var lTag = event.target.nodeName; + if(lTag === 'SPAN' || lTag === 'A' + $('li').contextMenu(); } }); @@ -102,10 +105,8 @@ CloudCommander.Menu.Keys = (function(){ }; } - /* showing context menu preview*/ - if(lTag === 'SPAN' || lTag === 'A') - CloudCommander.Menu.show(); - else CloudCommander.Menu.set(); + /* showing context menu preview*/ + CloudCommander.Menu.show(); }); CloudCommander.Menu.load(this);