Update lib/client/menu.js

This commit is contained in:
coderaiser 2012-08-14 16:00:54 +03:00
parent da48c6ed0e
commit f473b8cb3f

View file

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