Browse Source

Merge pull request #2062 from clupprich/accordion-on-opening-callback

Add onOpening callback to Accordion
pull/2092/head
Jack Lukic 9 years ago
parent
commit
1b38733630
1 changed files with 2 additions and 0 deletions
  1. 2
      src/definitions/modules/accordion.js

2
src/definitions/modules/accordion.js

@ -157,6 +157,7 @@ $.fn.accordion = function(parameters) {
;
if(isUnopen) {
module.debug('Opening accordion content', $activeTitle);
settings.onOpening.call(this);
if(settings.exclusive) {
module.closeOthers.call($activeTitle);
}
@ -545,6 +546,7 @@ $.fn.accordion.settings = {
duration : 350,
easing : 'easeOutQuad',
onOpening : function(){},
onOpen : function(){},
onClose : function(){},
onChange : function(){},

Loading…
Cancel
Save