mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-21 08:57:40 +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 $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 || {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user