From 6a7844d12d5b41e203b7284471eed1bb6d93c610 Mon Sep 17 00:00:00 2001 From: Mark MacKay Date: Thu, 15 Apr 2021 20:23:27 -0500 Subject: [PATCH] fixing entering group --- src/js/Panel.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/js/Panel.js b/src/js/Panel.js index c300c2d..23fb576 100644 --- a/src/js/Panel.js +++ b/src/js/Panel.js @@ -315,6 +315,17 @@ MD.Panel = function(){ } } + $('#cur_context_panel').delegate('a', 'click', function() { + var link = $(this); + if(link.attr('data-root')) { + svgCanvas.leaveContext(); + } else { + svgCanvas.setContext(link.text()); + } + svgCanvas.clearSelection(); + return false; + }); + this.show = show; this.updateContextPanel = updateContextPanel; } \ No newline at end of file