mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure catch/status nodes marked changed when edited
This commit is contained in:
parent
1d73c86cb2
commit
0b98a6acf8
@ -115,7 +115,7 @@
|
||||
var nodeList = $("#node-input-catch-target-container");
|
||||
var node = this;
|
||||
function createNodeList() {
|
||||
node.scope = node.scope || [];
|
||||
var scope = node.scope || [];
|
||||
nodeList.empty();
|
||||
|
||||
var candidateNodes = RED.nodes.filterNodes({z:node.z});
|
||||
@ -125,7 +125,7 @@
|
||||
if (n.id === node.id) {
|
||||
return;
|
||||
}
|
||||
var isChecked = node.scope.indexOf(n.id) !== -1;
|
||||
var isChecked = scope.indexOf(n.id) !== -1;
|
||||
|
||||
allChecked = allChecked && isChecked;
|
||||
|
||||
|
@ -106,7 +106,7 @@
|
||||
var nodeList = $("#node-input-status-target-container");
|
||||
var node = this;
|
||||
function createNodeList() {
|
||||
node.scope = node.scope || [];
|
||||
var scope = node.scope || [];
|
||||
nodeList.empty();
|
||||
|
||||
var candidateNodes = RED.nodes.filterNodes({z:node.z});
|
||||
@ -116,7 +116,7 @@
|
||||
if (n.id === node.id) {
|
||||
return;
|
||||
}
|
||||
var isChecked = node.scope.indexOf(n.id) !== -1;
|
||||
var isChecked = scope.indexOf(n.id) !== -1;
|
||||
|
||||
allChecked = allChecked && isChecked;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user