mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-13 00:36:04 -06:00
Update phonefield.js
This commit is contained in:
parent
0fb0727091
commit
6018567b4f
@ -26,13 +26,19 @@ function phoneMask(fields) {
|
||||
});
|
||||
|
||||
function maskPhone(name) {
|
||||
if ( $("input[name='" + name + "']").length ) {
|
||||
var currentMask = $("input[name='" + name + "']").attr('placeholder');
|
||||
if(currentMask) {
|
||||
$("input[name='" + name + "']").mask(currentMask.replace(/[0-9+]/ig, '9'), {
|
||||
autoclear: true,
|
||||
clearIncomplete: true
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function controlNumber(inputQuery) {
|
||||
var iti = intlTelInput(inputQuery, {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user