TT#137901 Do not clean orange background .accordion-group on hiding tooltip.

Otherwise the attribute 'open' has been removed from class '.accordion-group'
when user removes mouse from element 'search/from/to' (the 'hide' event is triggered).
Ngcp-panel should remove orange background on manual click to close accordion,
this is why we are validating 'e.target' to ignore tooltip events.

Change-Id: I04bee203f3e5a51eee66158c775ef6158b578a18
mr10.1
Alexander Lutay 4 years ago
parent e5c98f31fa
commit e89bf237e5

@ -35,7 +35,9 @@ var Theme = function () {
});
$('.accordion').on('hide', function (e) {
$(this).find('.accordion-toggle').not($(e.target)).parents ('.accordion-group').removeClass('open');
if ($(e.target).hasClass('accordion-body')) {
$(this).find('.accordion-toggle').not($(e.target)).parents ('.accordion-group').removeClass('open');
}
});
$('.accordion').each (function () {

Loading…
Cancel
Save