fixing entering group

master
Mark MacKay 2021-04-15 20:23:27 -05:00
parent c3d2eb1711
commit 6a7844d12d
1 changed files with 11 additions and 0 deletions

View File

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