Modal: Remove content after hiding

This commit is contained in:
Marius Hein 2019-10-21 15:42:41 +02:00
parent 8ea0908841
commit 4fb7f8cff9

View File

@ -53,8 +53,6 @@
var $target = $(event.target);
var $closeButton = $(event.target).closest('button.close');
console.log($target);
if ($target.is('#modal-overlay')) {
modal.hide();
} else if ($closeButton.length) {
@ -74,6 +72,8 @@
$body.css('overflow', '');
$overlay.removeClass('active');
$overlay.find('#modal-container').empty();
};
Icinga.Behaviors = Icinga.Behaviors || {};