Handle multiple toggles per flyover

This commit is contained in:
Alexander A. Klimov 2017-11-27 16:32:52 +01:00
parent fcd734ccbb
commit 8afd2f8a32
1 changed files with 4 additions and 2 deletions

View File

@ -44,8 +44,10 @@
if (! $target.closest('.flyover').length) {
var _this = event.data.self;
$target.closest('.container').find('.flyover.flyover-expanded .flyover-toggle').each(function() {
_this.onClickFlyoverToggle({target: this});
$target.closest('.container').find('.flyover.flyover-expanded').each(function() {
$(this).find('.flyover-toggle:first').each(function() {
_this.onClickFlyoverToggle({target: this});
});
});
}
};