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:
parent
b0d9903fe2
commit
7507a7b459
@ -452,6 +452,7 @@
|
|||||||
|
|
||||||
$( "#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; }
|
||||||
|
Loading…
Reference in New Issue
Block a user