I'm using "+" and "-" in front of the tab title ("+" when tab is closed to indicate it can be opened and there is more, and "-" when it's open to indicate it can be closed.
What works:
This works fine when click on a a tab and open it: plus changes to minus.
It works fine when I click on another tab: minus of first tab changes to plus, plus of second tab changes to minus.
What doesn't work:
What is not working is: when I click on tab that is open to close it, then minus is not changing to plus.
Here's my code from my cnt_part template:
Code: Select all
[TABCONTENT]
<div class="panel panel-default">
<div class="panel-heading bg-img" role="tab" id="head{TABHEADLINE}">
<h4 class="panel-title">
<a data-toggle="collapse" class="tog" data-parent="#acc-{ID}" href="#{TABHEADLINE}" aria-controls="{TABHEADLINE}"><i class="fa fa-plus"></i><i class="fa fa-minus"></i> {TABTITLE}</a>
</h4>
</div>
<div id="{TABHEADLINE}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="{TABHEADLINE}">
<div class="space_20"></div>[TABTEXT]{TABTEXT}[/TABTEXT]
</div>
[TABLINK]<p class="more"><a href="{TABLINK}"{TARGET}>@@read more@@</a></p>[/TABLINK]
<div class="clearfix"></div>
</div>
[/TABCONTENT]
Thank you for any help!