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

New config nodes not picking up defaults

This commit is contained in:
Nick O'Leary 2014-05-09 15:23:33 +01:00
parent 87410621c7
commit a5cf4b17bf

View File

@ -377,6 +377,11 @@ RED.editor = function() {
_def: node_def,
type: type
}
for (var d in node_def.defaults) {
if (node_def.defaults[d].value) {
configNode[d] = node_def.defaults[d].value;
}
}
}
$("#dialog-config-form").html($("script[data-template-name='"+type+"']").html());