Skip to content

Commit e9262ff

Browse files
committed
1 parent a6a5071 commit e9262ff

File tree

1 file changed

+2
-2
lines changed
  • src/main/resources/META-INF/resources/primefaces/accordion

1 file changed

+2
-2
lines changed

src/main/resources/META-INF/resources/primefaces/accordion/accordion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ PrimeFaces.widget.AccordionPanel = PrimeFaces.widget.BaseWidget.extend({
5353
}).click(function(e) {
5454
var element = $(this);
5555
if(!element.hasClass('ui-state-disabled')) {
56-
var tabIndex = element.index() / 2;
56+
var tabIndex = $this.headers.index(element);
5757

5858
if(element.hasClass('ui-state-active')) {
5959
$this.unselect(tabIndex);
@@ -273,7 +273,7 @@ PrimeFaces.widget.AccordionPanel = PrimeFaces.widget.BaseWidget.extend({
273273
ext = {
274274
params: [
275275
{name: this.id + '_tabId', value: panel.attr('id')},
276-
{name: this.id + '_tabindex', value: parseInt(index / 2)}
276+
{name: this.id + '_tabindex', value: parseInt(index)}
277277
]
278278
};
279279

0 commit comments

Comments
 (0)