mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
rework dialogs
This commit is contained in:
parent
5a71a65637
commit
5b66bb9ecb
39 changed files with 486 additions and 121 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['paperdialoghelper', 'jQuery', 'paper-checkbox', 'paper-dialog', 'paper-input', 'paper-item-body', 'paper-icon-item', 'paper-textarea', 'paper-fab'], function (paperDialogHelper, $) {
|
||||
define(['paperdialoghelper', 'jQuery', 'paper-checkbox', 'paper-input', 'paper-item-body', 'paper-icon-item', 'paper-textarea', 'paper-fab'], function (paperDialogHelper, $) {
|
||||
|
||||
var currentContext;
|
||||
var metadataEditorInfo;
|
||||
|
@ -6,7 +6,7 @@
|
|||
|
||||
function closeDialog(isSubmitted) {
|
||||
|
||||
if (currentContext.tagName == 'PAPER-DIALOG') {
|
||||
if (currentContext.tagName == 'DIALOG') {
|
||||
paperDialogHelper.close(currentContext);
|
||||
}
|
||||
}
|
||||
|
@ -463,7 +463,7 @@
|
|||
});
|
||||
|
||||
// For now this is only supported in dialog mode because we have a way of knowing when it closes
|
||||
if (currentContext.tagName == 'PAPER-DIALOG') {
|
||||
if (currentContext.tagName == 'DIALOG') {
|
||||
bindItemChanged(context);
|
||||
}
|
||||
}
|
||||
|
@ -1239,7 +1239,7 @@
|
|||
|
||||
paperDialogHelper.open(dlg);
|
||||
|
||||
dlg.addEventListener('iron-overlay-closed', function () {
|
||||
dlg.addEventListener('close', function () {
|
||||
unbindItemChanged(dlg);
|
||||
resolve();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue