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

Validate properties after calling oneditprepare

This commit is contained in:
Nick O'Leary 2014-04-08 15:32:58 +01:00
parent 43073de10b
commit d784889b75

View File

@ -73,12 +73,17 @@ RED.editor = function() {
}
};
}());
$("#node-input-"+d).change();
}
}
if (node._def.oneditprepare) {
node._def.oneditprepare.call(node);
}
if (node._def.defaults) {
for (var d in node._def.defaults) {
$("#node-input-"+d).change();
}
}
$( "#dialog" ).dialog("option","title","Edit "+node.type+" node").dialog( "open" );
}
@ -479,6 +484,7 @@ RED.editor = function() {
}
},
close: function(e) {
$("#dialog-config-form").html("");
if (RED.view.state() != RED.state.EDITING) {
RED.keyboard.enable();
}