Skip to content

Commit

Permalink
Merge pull request #10799 from ackepenek/popup-autoclose-enhancement
Browse files Browse the repository at this point in the history
fixed management ui popup auto close problem #10797
  • Loading branch information
michaelklishin committed Mar 19, 2024
2 parents eb436df + 60d2275 commit 6529dc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deps/rabbitmq_management/priv/www/js/main.js
Expand Up @@ -698,9 +698,13 @@ function show_popup(type, text, _mode) {
hide();
$('#outer').after(format('popup', {'type': type, 'text': text}));
$(cssClass).fadeIn(100);
$(cssClass + ' span').on('click', function () {

var closeButtonCssClass = cssClass + ' span';
$('div#outer,' + closeButtonCssClass).on('click', function(event) {
if ($(event.target).eq($(closeButtonCssClass)) || !$(event.target).closest(cssClass).length) {
$('.popup-owner').removeClass('popup-owner');
hide();
}
});
}

Expand Down

0 comments on commit 6529dc9

Please sign in to comment.