1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

still flattening wrinkles in change node...

(I blame the Xmas "spirit" ;-)
This commit is contained in:
Dave C-J 2013-12-24 17:01:53 +00:00
parent dafb2f1d38
commit e0921f84c4
2 changed files with 2 additions and 1 deletions

View File

@ -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") {

View File

@ -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 ) {