Skip to content

Commit

Permalink
Mark phoneNumberFormHandler deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Feb 3, 2025
1 parent d7dda4c commit 5ed866a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion themes/bootstrap3/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,12 @@ function getUrlRoot(url) {
return urlroot;
}

// Phone number validation
/**
* Phone number validation
* @param {String} numID Phone number field ID
* @param {String} regionCode Region code
* @deprecated See validation.js for replacement
*/
function phoneNumberFormHandler(numID, regionCode) {
var phoneInput = document.getElementById(numID);
var number = phoneInput.value;
Expand Down
7 changes: 6 additions & 1 deletion themes/bootstrap5/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,12 @@ function getUrlRoot(url) {
return urlroot;
}

// Phone number validation
/**
* Phone number validation
* @param {String} numID Phone number field ID
* @param {String} regionCode Region code
* @deprecated See validation.js for replacement
*/
function phoneNumberFormHandler(numID, regionCode) {
var phoneInput = document.getElementById(numID);
var number = phoneInput.value;
Expand Down

0 comments on commit 5ed866a

Please sign in to comment.