mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3201 from node-red/link-fixes
Fix saving link out node links
This commit is contained in:
commit
9fd5213f13
@ -118,6 +118,9 @@
|
|||||||
switch(evt.keyCode) {
|
switch(evt.keyCode) {
|
||||||
case 32: // SPACE
|
case 32: // SPACE
|
||||||
case 13: // ENTER
|
case 13: // ENTER
|
||||||
|
if (evt.altKey || evt.ctrlKey || evt.metaKey || evt.shiftKey) {
|
||||||
|
return
|
||||||
|
}
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
evt.stopPropagation();
|
evt.stopPropagation();
|
||||||
if (focussed.checkbox) {
|
if (focussed.checkbox) {
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
treeList = $("<div>")
|
treeList = $("<div>")
|
||||||
.css({width: "100%", height: "100%"})
|
.css({width: "100%", height: "100%"})
|
||||||
.appendTo(".node-input-link-row")
|
.appendTo(".node-input-link-row")
|
||||||
.treeList({})
|
.treeList({autoSelect:false})
|
||||||
.on('treelistitemmouseover',function(e,item) {
|
.on('treelistitemmouseover',function(e,item) {
|
||||||
if (item.node) {
|
if (item.node) {
|
||||||
item.node.highlighted = true;
|
item.node.highlighted = true;
|
||||||
@ -157,7 +157,7 @@
|
|||||||
function onEditSave(node) {
|
function onEditSave(node) {
|
||||||
var flows = treeList.treeList('data');
|
var flows = treeList.treeList('data');
|
||||||
node.links = [];
|
node.links = [];
|
||||||
if (node.type !== "link out" || $("node-input-mode").val() === 'link') {
|
if (node.type !== "link out" || $("#node-input-mode").val() === 'link') {
|
||||||
flows.forEach(function(f) {
|
flows.forEach(function(f) {
|
||||||
f.children.forEach(function(n) {
|
f.children.forEach(function(n) {
|
||||||
if (n.selected) {
|
if (n.selected) {
|
||||||
|
Loading…
Reference in New Issue
Block a user