mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Update formatPhoneNumber php function to include other country formatting, updated phone inputs to incoude country code
This commit is contained in:
16
js/app.js
16
js/app.js
@@ -425,20 +425,4 @@ $(document).ready(function() {
|
||||
// Data Tables
|
||||
new DataTable('.dataTables');
|
||||
|
||||
|
||||
// Initialize International Phone Input
|
||||
const inputs = document.querySelectorAll('input[type="tel"]');
|
||||
|
||||
// Loop through all the selected inputs and initialize intlTelInput on each one
|
||||
inputs.forEach(input => {
|
||||
window.intlTelInput(input, {
|
||||
initialCountry: "us",
|
||||
strictMode: true,
|
||||
showFlags: false,
|
||||
separateDialCode: true,
|
||||
nationalMode: false,
|
||||
loadUtils: () => import("../plugins/intl-tel-input/js/utils.js") // for formatting/placeholders etc
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user