no me habia dado ni cuenta de eso :P
el codigo sería:
Código Javascript
:
Ver original$(document).ready(function(){
$('ul li:has(ul)').click(function(e){
$('ul li:has(ul)').find('ul').hide();
$(this).mouseleave(function(e){
$(this).find('ul').hide();
});
if( !$(this).find('ul').css('display') || $(this).find('ul').css('display') == 'none' )
$(this).find('ul').show();
else
$(this).find('ul').hide();
});
});