From a5b41269e70c6811ec3afb9451f979e2d0324544 Mon Sep 17 00:00:00 2001 From: flynsarmy Date: Fri, 24 Jul 2015 16:24:50 +1000 Subject: [PATCH] Allow overriding number field pattern attribute --- 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 5e5b3fa64..4abe6c7aa 100644 --- a/modules/backend/widgets/form/partials/_field_number.htm +++ b/modules/backend/widgets/form/partials/_field_number.htm @@ -10,7 +10,7 @@ placeholder="placeholder)) ?>" class="form-control" autocomplete="off" - pattern="-?\d+(\.\d+)?" + hasAttribute('pattern') ? '' : 'pattern="-?\d+(\.\d+)?"' ?> hasAttribute('maxlength') ? '' : 'maxlength="255"' ?> getAttributes() ?> />