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

Let function node spinner go to 0

This commit is contained in:
Dave Conway-Jones 2019-09-30 09:54:05 +01:00
parent bb70e796a1
commit a27e8777aa
No known key found for this signature in database
GPG Key ID: 302A6725C594817F

View File

@ -41,7 +41,7 @@
oneditprepare: function() { oneditprepare: function() {
var that = this; var that = this;
$( "#node-input-outputs" ).spinner({ $( "#node-input-outputs" ).spinner({
min:1, min:0,
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; }