1
0
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:
Nick O'Leary 2015-08-24 14:47:17 +01:00
parent 1d73c86cb2
commit 0b98a6acf8
2 changed files with 4 additions and 4 deletions

View File

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

View File

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