Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • brankopilic Friend
    #175542

    Hi,

    I am wondering how to set up JA Accordion to have all panels closed when you open a web site? Instead of having first panel open?

    Here is my web site: http://umrc1.cloudaccess.net/

    Attached picture how I would like to be when web site is open: 1. JA Accordion issue.JPG
    And attached picture how it is at the moment: 2. JA Accordion issue.JPG

    It looks like that the javascript sets the first panel to display open! I was trying to play with start and end under template menu style with 1 and -1 features how to open menu! But this changes I guess of course didn’t applied on accordion module.

    Here is also a code what might help!?

    <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>

    Thank you in advance for your time and support.

    Best,
    Branko


    1. 1.-JA-Accordion-issue
    2. 2.-JA-Accordion-issue
    khoand Friend
    #446258

    You replace the code

    alwaysHide: true,
    with


    display: -1,
    alwaysHide: true,

    brankopilic Friend
    #446266

    Woow, AAAA+++++++++++

    Khoand Thanks a lot. I highly appreciate your help. It worked out perfect. Once again thank you for your time and support with this matter.

    Best,
    b

    <em>@khoand 310892 wrote:</em><blockquote>You replace the code

    alwaysHide: true,
    with


    display: -1,
    alwaysHide: true,

    </blockquote>

    abboud Friend
    #450671

    Hi, Sorry for opning this again: I have a similar issue with JA accordion but I need to have the Parent accordion item to open when it has a child linked that is active. Here is the site dev link: http://dev.digitup.se/suhoski/index.php?option=com_content&view=article&id=78&Itemid=455 If you choose a link under WEBBDESIGN and click, the first item is still opened although it is more logic to open the parent for the clicked one. Any ideas, please?

    Arvind Chauhan Moderator
    #451164

    Hi abboud,

    I am sorry but active support is available only to paid members. Please renew your membership to avail support.

    Regards

    mattsh Friend
    #457448

    Hi!

    Where can I find this js-file or the javascript?

    Thanks!

    Matt

    Stork11 Friend
    #457558

    <em>@mattsh 325427 wrote:</em><blockquote>Hi!

    Where can I find this js-file or the javascript?

    Thanks!

    Matt</blockquote>
    Hello Matt,

    This script is located in “modulesmod_jaaccordiontmpldefault.php”.

    Regards.

    mattsh Friend
    #457600

    Thanks!

    Works perfect!

    Matt

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

This topic contains 8 replies, has 6 voices, and was last updated by  mattsh 11 years, 10 months ago.

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