mirror of https://github.com/apache/nifi.git
[NIFI-2428] update modal glasspane to always close, even if the dialog we closed by user in close handler
This commit is contained in:
parent
f5dfa580db
commit
a8224edb8d
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue