From f6f4b0784b403606c5f2eba8c6c46acd937d1e94 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sat, 17 Jan 2015 21:02:28 +0000 Subject: [PATCH] Make subflow delete option more obvious Fixes #514 --- public/index.html | 3 ++- public/red/ui/editor.js | 39 --------------------------------------- public/red/ui/view.js | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 40 deletions(-) diff --git a/public/index.html b/public/index.html index f09db2039..d6c2f463b 100644 --- a/public/index.html +++ b/public/index.html @@ -54,9 +54,10 @@
- edit subflow name + edit name input output + delete subflow
diff --git a/public/red/ui/editor.js b/public/red/ui/editor.js index 3e30343c2..3e121a968 100644 --- a/public/red/ui/editor.js +++ b/public/red/ui/editor.js @@ -700,45 +700,6 @@ RED.editor = (function() { closeOnEscape: false, width: 500, buttons: [ - { - class: 'leftButton', - text: "Delete", - click: function() { - var removedNodes = []; - var removedLinks = []; - var startDirty = RED.view.dirty(); - - RED.nodes.eachNode(function(n) { - if (n.type == "subflow:"+editing_node.id) { - removedNodes.push(n); - } - if (n.z == editing_node.id) { - removedNodes.push(n); - } - }); - - for (var i=0;i