mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update dialog forms
This commit is contained in:
parent
02fd3db751
commit
76dd2768d2
6 changed files with 12 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
|||
function onSubmit() {
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var panel = $(this).parents('dialog')[0];
|
||||
var panel = $(this).parents('.dialog')[0];
|
||||
|
||||
var collectionId = $('#selectCollectionToAddTo', panel).val();
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@
|
|||
ApiClient.downloadRemoteImage(options).then(function () {
|
||||
|
||||
hasChanges = true;
|
||||
var dlg = $(page).parents('dialog')[0];
|
||||
var dlg = $(page).parents('.dialog')[0];
|
||||
dialogHelper.close(dlg);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var page = $(this).parents('dialog');
|
||||
var page = $(this).parents('.dialog');
|
||||
|
||||
var imageType = $('#selectImageType', page).val();
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
}
|
||||
|
||||
var form = this;
|
||||
var dlg = $(form).parents('dialog')[0];
|
||||
var dlg = $(form).parents('.dialog')[0];
|
||||
|
||||
var name = $('#txtValue', form).val();
|
||||
var type = $('#selectCollectionType', form).val();
|
||||
|
@ -63,7 +63,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
var dlg = $(this).parents('dialog')[0];
|
||||
var dlg = $(this).parents('.dialog')[0];
|
||||
|
||||
var index = this.selectedIndex;
|
||||
if (index != -1) {
|
||||
|
|
|
@ -4,9 +4,13 @@
|
|||
var metadataEditorInfo;
|
||||
var currentItem;
|
||||
|
||||
function isDialog() {
|
||||
return currentContext.classList.contains('dialog');
|
||||
}
|
||||
|
||||
function closeDialog(isSubmitted) {
|
||||
|
||||
if (currentContext.tagName == 'DIALOG') {
|
||||
if (isDialog()) {
|
||||
dialogHelper.close(currentContext);
|
||||
}
|
||||
}
|
||||
|
@ -463,7 +467,7 @@
|
|||
});
|
||||
|
||||
// For now this is only supported in dialog mode because we have a way of knowing when it closes
|
||||
if (currentContext.tagName == 'DIALOG') {
|
||||
if (isDialog()) {
|
||||
bindItemChanged(context);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var panel = $(this).parents('dialog')[0];
|
||||
var panel = $(this).parents('.dialog')[0];
|
||||
|
||||
var playlistId = $('#selectPlaylistToAddTo', panel).val();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue