Browse Source

Add onOpening callback to Accordion

pull/2062/head
Christoph Lupprich 9 years ago
parent
commit
05f3928708
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