test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • raffetali Friend
    #181312

    Hello,

    Is it possible to stop the JA Accordion auto drop down? I want it to be all collapsed as default until one was clicked.

    Thanks for your help

    Regards
    Raffet Ali

    Saguaros Moderator
    #469733

    Hi Raffet Ali,

    You could do that by opening file: modulesmod_jaaccordiontmpldefault.php, you will find this piece of javascript code:

    <script type="text/javascript">
    window.addEvent('domready', function(){
    var myAccordion = new Fx.Accordion($('ja-accordion146'), $$('.ja-accordion-title146'), $$('.ja-accordion-content146'), {
    alwaysHide: true,
    display: 0,
    trigger: 'click',
    duration: 300,
    transition: Fx.Transitions.quartOut,
    onActive: function(toggler, element){
    toggler.addClass('active');
    element.addClass('active');
    },
    onBackground: function(toggler, element){
    toggler.removeClass('active');
    element.removeClass('active');
    }
    });
    });
    </script>

    You replace the code

    alwaysHide: true,
    with


    display: -1,
    alwaysHide: true,

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 12 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum