Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.inc |
— | — | @@ -170,7 +170,7 @@ |
171 | 171 | return false; |
172 | 172 | } |
173 | 173 | } else if (type == 'number') { |
174 | | - if (field.value.match(/^[\d\.,]+$/)) { |
| 174 | + if (field.value.match(/^\-?[\d\.,]+$/)) { |
175 | 175 | return true; |
176 | 176 | } else { |
177 | 177 | infobox = document.getElementById(info_id); |