mirror of https://github.com/apache/nifi.git
[NIFI-2864] Update when shell empties content. This closes #1096
This commit is contained in:
parent
4dbdfea5dc
commit
44cc7e0072
|
@ -145,9 +145,6 @@ nf.Shell = (function () {
|
|||
if (content.length) {
|
||||
var shell = $('#shell');
|
||||
|
||||
// remove the previous contents of the shell
|
||||
shell.empty();
|
||||
|
||||
// get the parent of the content and detach it
|
||||
var parent = content.parent();
|
||||
content.detach();
|
||||
|
@ -166,6 +163,9 @@ nf.Shell = (function () {
|
|||
|
||||
// detach the content and add it back to the parent
|
||||
content.hide().detach().appendTo(parent);
|
||||
|
||||
// remove the previous contents of the shell
|
||||
shell.empty();
|
||||
});
|
||||
|
||||
// hide the undock button
|
||||
|
|
Loading…
Reference in New Issue