File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/resources/META-INF/resources/primefaces/accordion Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments