Repository: nifi
Updated Branches:
  refs/heads/master e3da44fb6 -> a4e729c7a


NIFI-4324:
- Ensuring that sub context menus are removed when hiding to ensure they are 
correctly (re)created during mouseenter events.

Signed-off-by: Scott Aslan <[email protected]>

This closes #2109


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/a4e729c7
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/a4e729c7
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/a4e729c7

Branch: refs/heads/master
Commit: a4e729c7a77e73fad6d827df6411f040461d060a
Parents: e3da44f
Author: Matt Gilman <[email protected]>
Authored: Fri Aug 25 16:08:34 2017 -0400
Committer: Scott Aslan <[email protected]>
Committed: Fri Aug 25 16:20:32 2017 -0400

----------------------------------------------------------------------
 .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/a4e729c7/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
----------------------------------------------------------------------
diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
index 711837e..65346b2 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js
@@ -778,7 +778,8 @@
          * Hides the context menu.
          */
         hide: function () {
-            $('.context-menu').hide();
+            $('#context-menu').hide();
+            $('div.context-menu.sub-menu').remove();
         },
 
         /**

Reply via email to