It's all good this is the final function
>
> $("#menu").on ("shown.bs.collapse hidden.bs.collapse", function(e)
>> {
>
> //je recupére les div contenant le sous-menu
>
> var $t = $(e.target);
>
> //je recupére les span avec le chevron
>
> var heading = $t.parents().find('*.panel-heading span');
>
> //je mets tous les chevron comme fermés
>
> heading.removeClass('chevron-down').addClass('chevron-right
>> grey');
>
> //je recupére le span avec le chevron cliqué
>
> var this_heading = $t.prev().find('span');
>
> //je change la classe du chevron
>
> $t.hasClass('in') ?
>> this_heading.addClass('chevron-down').removeClass('chevron-right grey') :
>> this_heading.removeClass('chevron-down').addClass('chevron-right grey');
>
> });
>
>
--
You received this message because you are subscribed to the Google Groups
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.