From 3cbbd1b21aa72ad827c35364b30a58e5a0e357d5 Mon Sep 17 00:00:00 2001 From: juggledad Date: Thu, 12 Nov 2020 16:04:49 -0500 Subject: [PATCH] added validation to 'low' and 'high' to prevent anything but a number from being entered. --- function/random/random.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/function/random/random.html b/function/random/random.html index 3fcefcc5..dd25e067 100644 --- a/function/random/random.html +++ b/function/random/random.html @@ -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} },