Changeset 5960


Ignore:
Timestamp:
03/11/09 22:20:42 (10 years ago)
Author:
astephen
Message:

Added some templates.

Location:
cows_wps/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/public/js/ui/validate.js

    r5958 r5960  
    8585        var fnc = vm.getFunction(validation_type); 
    8686         
    87         var value = document.getElementById(name); 
    88         var res = fnc.call(value, regex_match, msg); 
     87        var value = document.getElementById(name).value; 
     88        var res = fnc.call(this, value, regex_match, msg); 
    8989 
    9090        if (res == false) { 
  • cows_wps/trunk/cows_wps/renderer/form_renderer.py

    r5958 r5960  
    4242 
    4343        validators = {"int": ("/^[0-9]+$/", "The %s input must be an integer." % name),  
    44                       "float": ("/^(([0-9]+\.[0-9]+)|([0-9]+\.)|(\.[0-9]))$/", "The %s input must be a decimal number." % name), 
     44                      "float": ("/^[-+]?([0-9]*\.[0-9]+|[0-9]+)$/", "The %s input must be a decimal number." % name), 
    4545                      "string": ("/[0-9a-zA-Z]+/", "The %s input must include text characters." % name)} 
    4646 
Note: See TracChangeset for help on using the changeset viewer.