|
@ -487,6 +487,7 @@
|
|
if(first.select) first.select();
|
|
if(first.select) first.select();
|
|
first.focus();
|
|
first.focus();
|
|
}
|
|
}
|
|
|
|
|
|
return this.options.onFormValidate(result, this.jForm);
|
|
return this.options.onFormValidate(result, this.jForm);
|
|
},
|
|
},
|
|
|
|
|
|
@ -1054,7 +1055,7 @@
|
|
}],
|
|
}],
|
|
['validate-chinese',/^[\u4e00-\u9fa5]+$/],
|
|
['validate-chinese',/^[\u4e00-\u9fa5]+$/],
|
|
['validate-phone',/^((0[1-9]{3})?(0[12][0-9])?[-])?\d{6,8}$/],
|
|
['validate-phone',/^((0[1-9]{3})?(0[12][0-9])?[-])?\d{6,8}$/],
|
|
['validate-mobile-phone',/^0?(13[0-9]|15[0-9]|18[0-9]|14[57]|17[0-9])[0-9]{8}$/],
|
|
|
|
|
|
['validate-mobile-phone',/^0?(13[0-9]|15[0-9]|18[0-9]|14[57]|17[0-9]|19[0-9])[0-9]{8}$/],
|
|
['validate-mobile-and-phone', function (v,elm,args,metadata) {
|
|
['validate-mobile-and-phone', function (v,elm,args,metadata) {
|
|
if(/^((0[1-9]{3})?(0[12][0-9])?[-]?)?\d{6,8}$/.test(v) || /^0?(13[0-9]|15[0-9]|18[0-9]|14[57]|17[0-9])[0-9]{8}$/.test(v))
|
|
if(/^((0[1-9]{3})?(0[12][0-9])?[-]?)?\d{6,8}$/.test(v) || /^0?(13[0-9]|15[0-9]|18[0-9]|14[57]|17[0-9])[0-9]{8}$/.test(v))
|
|
return true;
|
|
return true;
|