[NIFI-2864] Update when shell empties content. This closes #1096

This commit is contained in:
Scott Aslan 2016-10-04 16:07:44 -04:00 committed by Matt Gilman
parent 4dbdfea5dc
commit 44cc7e0072
1 changed files with 3 additions and 3 deletions

View File

@ -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