https://bugzilla.wikimedia.org/show_bug.cgi?id=20914

           Summary: Negative numbers give error in form field of Type:Number
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: SemanticForms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Just a small patch to allow negative numbers in Type:Number fields. 

For version 1.8.4 downloaded as tgz:

SemanticForms/includes/SF_FormUtils.inc

173c173
<                       if (field.value.match(/^[\d\.,]+$/)) {
---
>                       if (field.value.match(/^\-?[\d\.,]+$/)) {


Love the application.  Thanks for all your work.

Cam


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to