mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-22 09:27:39 +02:00
Modal: Remove content after hiding
This commit is contained in:
parent
8ea0908841
commit
4fb7f8cff9
@ -53,8 +53,6 @@
|
|||||||
var $target = $(event.target);
|
var $target = $(event.target);
|
||||||
var $closeButton = $(event.target).closest('button.close');
|
var $closeButton = $(event.target).closest('button.close');
|
||||||
|
|
||||||
console.log($target);
|
|
||||||
|
|
||||||
if ($target.is('#modal-overlay')) {
|
if ($target.is('#modal-overlay')) {
|
||||||
modal.hide();
|
modal.hide();
|
||||||
} else if ($closeButton.length) {
|
} else if ($closeButton.length) {
|
||||||
@ -74,6 +72,8 @@
|
|||||||
$body.css('overflow', '');
|
$body.css('overflow', '');
|
||||||
|
|
||||||
$overlay.removeClass('active');
|
$overlay.removeClass('active');
|
||||||
|
|
||||||
|
$overlay.find('#modal-container').empty();
|
||||||
};
|
};
|
||||||
|
|
||||||
Icinga.Behaviors = Icinga.Behaviors || {};
|
Icinga.Behaviors = Icinga.Behaviors || {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user