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

Change how hidden input is appended

Fixes #360
This commit is contained in:
Nick O'Leary 2014-08-28 20:55:19 +01:00
parent 6f888068d2
commit 8849f11eb5

View File

@ -455,7 +455,8 @@ RED.editor = (function() {
function showEditDialog(node) {
editing_node = node;
RED.view.state(RED.state.EDITING);
$("#dialog-form").html($("script[data-template-name='"+node.type+"']").html()+'<input type="text" style="display: none;" />');
$("#dialog-form").html($("script[data-template-name='"+node.type+"']").html());
$('<input type="text" style="display: none;" />').appendTo("#dialog-form");
prepareEditDialog(node,node._def,"node-input");
$( "#dialog" ).dialog("option","title","Edit "+node.type+" node").dialog( "open" );
}