Forum Support

Shape 5
March 29, 2024, 05:47:17 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Collapsible option  (Read 780 times)
sneadm
Jr. Member
**
Offline Offline

Posts: 90



« on: September 28, 2015, 04:41:26 AM »

Is there a way to set the collapsible option to true? in the jquery call?
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: September 28, 2015, 07:11:13 AM »

Hello,

It was designed so that one is always open. I am not aware of a way to make them all collapsed.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
sneadm
Jr. Member
**
Offline Offline

Posts: 90



« Reply #2 on: September 28, 2015, 09:37:35 AM »

I think you're using jquery although I'll admit I'm having trouble following the code.  Here is a link to the jquery website that describes the option.  https://jqueryui.com/accordion/#collapsible  I don't think this existed in the old mootools one but seems to now in jquery.  Is this what you're using?
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: September 29, 2015, 07:19:01 AM »

Hello,

It uses jquery but only for the effect itself of opening and closing. The actual function of class names, detecting clicks, which item is open, etc. is custom javascript. Changing this functionality would require custom programming, we don't provide those services. Looking over the code, I believe the initial accordion is controlled here if you want to try and modify it:

if(s5_va_accordion_current < s5_va_accordion_len - 1){
         s5_va_accordion_current++;
      }
      else{
         s5_va_accordion_current = 0;
      }   


You could probably remove all of that and just set it to:

s5_va_accordion_current = 100;

Which would set the current accordion to an ID that doesn't exist so none are open. I did not test it though.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.