From 27136315c1dc21bffb2949e86413999f5b3013be Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 22 Aug 2013 16:43:47 +0000 Subject: [PATCH] negative numbers --- lam/lib/html.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index eccdf279..4001e0b3 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -49,6 +49,8 @@ abstract class htmlElement { /** validation rule to allow only numbers ([0-9]+) */ const VALIDATE_NUMERIC = 'numeric'; + /** validation rule to allow positive/negative numbers ([-]?[0-9]+) */ + const VALIDATE_NUMERIC_WITH_NEGATIVE = 'numericWithNegative'; /** alignment when inside a table */ public $alignment = null;