added validation to 'low' and 'high' to prevent anything but a number from being entered.

This commit is contained in:
juggledad 2020-11-12 16:04:49 -05:00 committed by GitHub
parent 0dacd78252
commit 3cbbd1b21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,8 @@
color:"#E2D96E",
defaults: {
name: {value:""},
low: {value:""},
high: {value:""},
low: {value:"",validate:function(v) { return !isNaN(v) || v.length === 0;} },
high: {value:"",validate:function(v) { return !isNaN(v) || v.length === 0;} },
inte: {value:"true"},
property: {value:"payload",required:true}
},