From 18a3d71024da5a51ec292ae0d4147ce62d3de302 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 20 Mar 2015 23:11:24 +0000 Subject: [PATCH] Double-click on subflow palette node to open flow --- public/red/ui/palette.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/red/ui/palette.js b/public/red/ui/palette.js index 253187ae0..c83871d84 100644 --- a/public/red/ui/palette.js +++ b/public/red/ui/palette.js @@ -178,6 +178,13 @@ RED.palette = (function() { revertDuration: 50, start: function() {RED.view.focus();} }); + + if (def.category == "subflows") { + $(d).dblclick(function(e) { + RED.workspaces.show(nt.substring(8)); + e.preventDefault(); + }); + } setLabel(nt,$(d),label); }