update dialog forms

This commit is contained in:
Luke Pulverenti 2016-03-23 15:06:36 -04:00
parent 02fd3db751
commit 76dd2768d2
6 changed files with 12 additions and 8 deletions

View file

@ -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);
}
}