Commit 903ee774 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Added non-zero number vtype

- Robert Anderson <randerson@lbsd.net>
parent 4efad017
......@@ -9,6 +9,13 @@ Ext.apply(Ext.form.VTypes, {
'numberText': "This field must contain a number",
'numberDisallowZero': function(v) {
var numberDisallowZeroMask = /^[1-9]+[0-9]*$/;
return numberDisallowZeroMask.test(v);
},
'numberDisallowZeroText': "This field must contain a number greater than zero",
'domain': function(v) {
var domainMask = /^[a-z0-9]+[a-z0-9\-]*(\.[a-z0-9\-]+)+$/;
return domainMask.test(v);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment