From 116d085574c64c198f9b3baa747697d84e4f3bef Mon Sep 17 00:00:00 2001 From: Scrounger Date: Wed, 28 Aug 2019 18:54:55 +0200 Subject: [PATCH] custom: number max, min -> allow point input --- admin/custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/custom.js b/admin/custom.js index 55b27b2..fe80a49 100644 --- a/admin/custom.js +++ b/admin/custom.js @@ -658,7 +658,7 @@ if (typeof customPostInits !== 'undefined') { Input.number_max.keyup(function () { // Nur pos / neg integer erlauben - let regEx = /^[-]?[0-9]*$/ + let regEx = /^[-]?[0-9\.]*$/ if (!regEx.test(this.value)) { gMain.showError(_("only numbers allowed")); @@ -668,7 +668,7 @@ if (typeof customPostInits !== 'undefined') { Input.number_min.keyup(function () { // Nur pos / neg integer erlauben - let regEx = /^[-]?[0-9]*$/ + let regEx = /^[-]?[0-9\.]*$/ if (!regEx.test(this.value)) { gMain.showError(_("only numbers allowed"));