diff --git a/packages/node_modules/@node-red/nodes/core/common/20-inject.html b/packages/node_modules/@node-red/nodes/core/common/20-inject.html index ce537d0fa..2052a10b8 100644 --- a/packages/node_modules/@node-red/nodes/core/common/20-inject.html +++ b/packages/node_modules/@node-red/nodes/core/common/20-inject.html @@ -692,14 +692,6 @@ title: node.name || (node._def.label && node._def.label.call(node)) || node._('inject.inject'), width: 'inherit', buttons: [ - { - id: 'node-dialog-cancel', - class: 'primary', - text: node._('inject.userValueButtons.close'), - click: function () { - RED.tray.close(); - } - }, { id: 'node-dialog-apply', text: node._('inject.userValueButtons.apply'), @@ -742,29 +734,44 @@ } }, { - id: 'node-dialog-ok', - text: node._('inject.userValueButtons.inject'), + id: 'node-dialog-cancel', + class: 'primary', + text: node._('inject.userValueButtons.close'), click: function () { - var items = $('#node-inject-custom-list').editableList('items'); - var result = getProps(items); - if (result && result.props && result.props.length) { - m = { __user_inject_props__: result.props }; - } - doInject(m); - //RED.tray.close(); + RED.tray.close(); } - } + }, ], resize: function (dimensions) { $('#node-dialog-inject-custom .red-ui-editableList-container').css('height', '');//allow editable list to self size }, open: function (tray) { var trayBody = tray.find('.red-ui-tray-body'); - var dialog = $('
'); + // var dialog = $(''); + var dialog = $(''); + + var row1 = $(''); + var button = $(''); + button.text(node._('inject.userValueButtons.inject')); + row1.append(button); + + var row2 = $(''); var list = $('