From 7e84d50fe51e8d8deffd20e6703bdf1ad34d9674 Mon Sep 17 00:00:00 2001 From: Scott Aslan Date: Tue, 4 Oct 2016 16:07:44 -0400 Subject: [PATCH] [NIFI-2864] Update when shell empties content --- .../nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js index b5eaeb298fa7..c51f03f017bf 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-shell.js @@ -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