Double-click on subflow palette node to open flow

This commit is contained in:
Nick O'Leary 2015-03-20 23:11:24 +00:00
parent 26db1048f9
commit 18a3d71024
1 changed files with 7 additions and 0 deletions

View File

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