Forum
Welcome, Guest
Please Login to access forum.
Re:Disable accordion on specific modules (1 viewing) 
Go to bottom
TOPIC: Re:Disable accordion on specific modules
#2319
Yuriy Boev
Fresh Boarder
Posts: 7
User Offline
Disable accordion on specific modules Karma: 0  
Hello,

is it possible to disable accordion function on specific modules?
Right now I can do it with CSS and display: block!important, but users still can click on the title of the module and the content will flash.

Thanks
 
Logged Logged  
  The administrator has disabled public write access.
#2321
John Dagelmore
Admin
Posts: 3885
User Online Now
Re:Disable accordion on specific modules Karma: 84  
Hello, as for now it can't be disabled using settings, although this feature is already planned to be added in the next release.

If you want to disable it completely some JavaScript is required.

Thanks

John
 
Logged Logged  
  The administrator has disabled public write access.
#2322
Yuriy Boev
Fresh Boarder
Posts: 7
User Offline
Re:Disable accordion on specific modules Karma: 0  
Thanks, I have changed utility.js to:

Code:

$('.moduletable:not(.noAccordeon) > h3').css('cursor', 'pointer').click(function(event) { $(this).nextAll().slideToggle(); });
I have also added custom module class "noAccordeon" to style it and use it as selector.
 
Logged Logged  
  The administrator has disabled public write access.
#2323
John Dagelmore
Admin
Posts: 3885
User Online Now
Re:Disable accordion on specific modules Karma: 84  
Yes exactly that's correct.
 
Logged Logged  
  The administrator has disabled public write access.
Go to top