[NIFI-2428] update modal glasspane to always close, even if the dialog we closed by user in close handler

This commit is contained in:
Scott Aslan 2016-07-29 11:25:46 -04:00 committed by joewitt
parent f5dfa580db
commit a8224edb8d
2 changed files with 4 additions and 4 deletions

View File

@ -520,10 +520,10 @@
handler.call(dialog);
}
if (dialog.is(':visible')) {
// remove the modal glass pane overlay
$('body').find("[data-nf-dialog-parent='" + dialog.attr('id') + "']").remove();
// remove the modal glass pane overlay
$('body').find("[data-nf-dialog-parent='" + dialog.attr('id') + "']").remove();
if (dialog.is(':visible')) {
// hide the dialog
dialog.hide();
}

View File

@ -1111,7 +1111,7 @@ nf.StatusHistory = (function () {
handler: {
close: function () {
// remove the current status history
$('#status-history-dialog').removeData('status-history').hide();
$('#status-history-dialog').removeData('status-history');
// reset the dom
$('#status-history-chart-container').empty();