vendor/assets/javascripts/base/_layout.js in active_frontend-14.0.77 vs vendor/assets/javascripts/base/_layout.js in active_frontend-14.0.78
- old
+ new
@@ -22,10 +22,11 @@
Layout.VERSION = '1.0.0';
Layout.DEFAULTS = {
direction: 'left',
effect: 'slide',
+ onToggleCallback: function (toggle) {},
target: '#layout-target'
};
Layout.prototype.constructor = Layout;
@@ -48,9 +49,11 @@
target.animation({
duration: 'xxs',
effect: effect,
hide: toggle === 'out'
});
+
+ _self.options.onToggleCallback(toggle);
});
};
Layout.prototype.getNext = function () {
var next = $(this.options.target).next();