From e0921f84c4769f5ed694b40916c053528f260171 Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Tue, 24 Dec 2013 17:01:53 +0000 Subject: [PATCH] still flattening wrinkles in change node... (I blame the Xmas "spirit" ;-) --- nodes/core/logic/15-change.html | 1 + nodes/core/logic/15-change.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nodes/core/logic/15-change.html b/nodes/core/logic/15-change.html index c2a2f0420..9d6d2c344 100644 --- a/nodes/core/logic/15-change.html +++ b/nodes/core/logic/15-change.html @@ -76,6 +76,7 @@ return this.name ? "node_label_italic" : ""; }, oneditprepare: function() { + if (this.reg === null) { $("#node-input-reg").selected(true); } $("#node-input-action").change( function() { var a = $("#node-input-action").val(); if (a === "replace") { diff --git a/nodes/core/logic/15-change.js b/nodes/core/logic/15-change.js index 2d7a24770..8922bde20 100644 --- a/nodes/core/logic/15-change.js +++ b/nodes/core/logic/15-change.js @@ -22,7 +22,7 @@ function ChangeNode(n) { this.property = n.property || ""; this.from = n.from || " "; this.to = n.to || " "; - this.reg = n.reg; + this.reg = (n.reg === null || n.reg); var node = this; var makeNew = function( stem, path, value ) {