update dialog forms
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user