From 05f3928708a2090513567b7bbb1a0a9ae4f73d9e Mon Sep 17 00:00:00 2001 From: Christoph Lupprich Date: Sat, 4 Apr 2015 18:44:14 +0200 Subject: [PATCH] Add onOpening callback to Accordion --- src/definitions/modules/accordion.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/definitions/modules/accordion.js b/src/definitions/modules/accordion.js index f5532090d..bc73725d5 100644 --- a/src/definitions/modules/accordion.js +++ b/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(){},