Commit d48555ce authored by Jelle's avatar Jelle
Browse files

this.optional(element) for phone validation

parent 626e2cbe
...@@ -1285,7 +1285,7 @@ ...@@ -1285,7 +1285,7 @@
result = res; result = res;
} }
}); });
return result.result; return this.optional(element) || result.result;
}, jQuery.format('Please fill in a valid phone number')); }, jQuery.format('Please fill in a valid phone number'));
......
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