From 74cd856f8a20acb78fe999bb949fe4351025e864 Mon Sep 17 00:00:00 2001 From: flynsarmy Date: Sun, 22 Feb 2015 13:45:40 +1000 Subject: [PATCH] Accept any valid number, positive or negative --- modules/backend/widgets/form/partials/_field_number.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/backend/widgets/form/partials/_field_number.htm b/modules/backend/widgets/form/partials/_field_number.htm index a35e77598..48d944798 100644 --- a/modules/backend/widgets/form/partials/_field_number.htm +++ b/modules/backend/widgets/form/partials/_field_number.htm @@ -11,7 +11,7 @@ class="form-control" autocomplete="off" maxlength="255" - pattern="\d+" + pattern="-?\d+(\.\d+)?" getAttributes() ?> />