mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
use removeOnClose
This commit is contained in:
parent
d22c5b9c01
commit
9a99eaa803
1 changed files with 2 additions and 6 deletions
|
@ -232,7 +232,8 @@
|
||||||
|
|
||||||
var dlg = paperDialogHelper.createDialog({
|
var dlg = paperDialogHelper.createDialog({
|
||||||
size: 'small',
|
size: 'small',
|
||||||
theme: 'a'
|
theme: 'a',
|
||||||
|
removeOnClose: true
|
||||||
});
|
});
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
|
@ -262,11 +263,6 @@
|
||||||
dlg.innerHTML = html;
|
dlg.innerHTML = html;
|
||||||
document.body.appendChild(dlg);
|
document.body.appendChild(dlg);
|
||||||
|
|
||||||
// Has to be assigned a z-index after the call to .open()
|
|
||||||
dlg.addEventListener('iron-overlay-closed', function (e) {
|
|
||||||
dlg.parentNode.removeChild(dlg);
|
|
||||||
});
|
|
||||||
|
|
||||||
paperDialogHelper.open(dlg);
|
paperDialogHelper.open(dlg);
|
||||||
|
|
||||||
$('form', dlg).on('submit', function () {
|
$('form', dlg).on('submit', function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue