Added general phone number validator.

This commit is contained in:
Martin Donnelly 2016-03-15 17:39:40 +00:00
parent 78f09a300c
commit 2b46220f00

View File

@ -267,12 +267,10 @@ var VALIDATE = new function() {
this.validatePhone = function(params) { this.validatePhone = function(params) {
"use strict"; "use strict";
var f = params.f;
var uk = params.uk || false; var uk = params.uk || false;
var flag = params.flag;
var v = params.number; var v = params.number;
var required = params.req || false; var required = params.req || false;
var itrx, iflag = true; var itrx;
var onlyDigits = function(inval) { var onlyDigits = function(inval) {