Browse Source

Merge pull request #5892 from GammaGames/master

Added onChanging callback to accordion
pull/5282/merge
Jack Lukic 6 years ago
committed by GitHub
parent
commit
93083b61ff
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. 3
      dist/semantic.js

3
dist/semantic.js

@ -2374,6 +2374,7 @@ $.fn.accordion = function(parameters) {
}
module.debug('Opening accordion content', $activeTitle);
settings.onOpening.call($activeContent);
settings.onChanging.call($activeContent);
if(settings.exclusive) {
module.closeOthers.call($activeTitle);
}
@ -2437,6 +2438,7 @@ $.fn.accordion = function(parameters) {
if((isActive || isOpening) && !isClosing) {
module.debug('Closing accordion content', $activeContent);
settings.onClosing.call($activeContent);
settings.onChanging.call($activeContent);
$activeTitle
.removeClass(className.active)
;
@ -2784,6 +2786,7 @@ $.fn.accordion.settings = {
onOpen : function(){}, // callback after open animation
onClosing : function(){}, // callback before closing animation
onClose : function(){}, // callback after closing animation
onChanging : function(){}, // callback before closing or opening animation
onChange : function(){}, // callback after closing or opening animation
error: {

Loading…
Cancel
Save