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);
|
handler.call(dialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dialog.is(':visible')) {
|
// remove the modal glass pane overlay
|
||||||
// remove the modal glass pane overlay
|
$('body').find("[data-nf-dialog-parent='" + dialog.attr('id') + "']").remove();
|
||||||
$('body').find("[data-nf-dialog-parent='" + dialog.attr('id') + "']").remove();
|
|
||||||
|
|
||||||
|
if (dialog.is(':visible')) {
|
||||||
// hide the dialog
|
// hide the dialog
|
||||||
dialog.hide();
|
dialog.hide();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1111,7 +1111,7 @@ nf.StatusHistory = (function () {
|
||||||
handler: {
|
handler: {
|
||||||
close: function () {
|
close: function () {
|
||||||
// remove the current status history
|
// remove the current status history
|
||||||
$('#status-history-dialog').removeData('status-history').hide();
|
$('#status-history-dialog').removeData('status-history');
|
||||||
|
|
||||||
// reset the dom
|
// reset the dom
|
||||||
$('#status-history-chart-container').empty();
|
$('#status-history-chart-container').empty();
|
||||||
|
|
Loading…
Reference in New Issue