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

Limit number of ports in function node

This commit is contained in:
Kazuhito Yokoi 2022-09-16 02:10:14 +09:00
parent b0d9903fe2
commit 7507a7b459

View File

@ -451,7 +451,8 @@
tabs.activateTab("func-tab-body"); tabs.activateTab("func-tab-body");
$( "#node-input-outputs" ).spinner({ $( "#node-input-outputs" ).spinner({
min:0, min: 0,
max: 10,
change: function(event, ui) { change: function(event, ui) {
var value = this.value; var value = this.value;
if (!value.match(/^\d+$/)) { value = 1; } if (!value.match(/^\d+$/)) { value = 1; }