diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-09-22 11:21:28 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-09-22 11:21:28 +0500 |
commit | 38cc1485749c60c32ee9ef8a01da74140588cc3a (patch) | |
tree | f1994c25831ce11957e74f029e96e241e750be8c /web/react/components/channel_loader.jsx | |
parent | ee5a77ec56ee13f5eb96fce6065b4b7a1845de89 (diff) | |
download | chat-38cc1485749c60c32ee9ef8a01da74140588cc3a.tar.gz chat-38cc1485749c60c32ee9ef8a01da74140588cc3a.tar.bz2 chat-38cc1485749c60c32ee9ef8a01da74140588cc3a.zip |
UI Modifications for multiple tickets
Diffstat (limited to 'web/react/components/channel_loader.jsx')
-rw-r--r-- | web/react/components/channel_loader.jsx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/web/react/components/channel_loader.jsx b/web/react/components/channel_loader.jsx index ce6f60f87..20ea34e15 100644 --- a/web/react/components/channel_loader.jsx +++ b/web/react/components/channel_loader.jsx @@ -90,11 +90,12 @@ export default class ChannelLoader extends React.Component { } /* Setup global mouse events */ - $('body').on('click.userpopover', function popOver(e) { - if ($(e.target).attr('data-toggle') !== 'popover' && - $(e.target).parents('.popover.in').length === 0) { - $('.user-popover').popover('hide'); - } + $('body').on('click', function hidePopover(e) { + $('[data-toggle="popover"]').each(function eachPopover() { + if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) { + $(this).popover('hide'); + } + }); }); $('body').on('mouseenter mouseleave', '.post', function mouseOver(ev) { |