From 8e3dd42a327411277919e50c967d179518a9555f Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 21 Mar 2025 21:54:55 -0400 Subject: [PATCH] Allow start interface to be named 0 --- blank.php | 2 ++ includes/footer.php | 2 +- includes/header.php | 1 + js/app.js | 13 ++++++++++++- modals/asset_interface_multiple_add_modal.php | 2 +- 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/blank.php b/blank.php index c878a327..9cf73716 100644 --- a/blank.php +++ b/blank.php @@ -28,6 +28,8 @@ echo getUserAgent(); ?>
+ +
Requester
Sam Adams
diff --git a/includes/footer.php b/includes/footer.php index e5cc1b36..bb0cf4f6 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -33,7 +33,7 @@ if (str_contains(basename($_SERVER["PHP_SELF"]), "admin_")) { ?> - + diff --git a/includes/header.php b/includes/header.php index 8c6aee12..2acbeed4 100644 --- a/includes/header.php +++ b/includes/header.php @@ -39,6 +39,7 @@ header("X-Frame-Options: DENY"); + diff --git a/js/app.js b/js/app.js index 1b7bbbbe..d30c38e4 100644 --- a/js/app.js +++ b/js/app.js @@ -439,4 +439,15 @@ $(function () { }); // Data Tables -new DataTable('.dataTables'); \ No newline at end of file +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, + loadUtils: () => import("../plugins/intl-tel-input/js/utils.js") // for formatting/placeholders etc + }); +}); \ No newline at end of file diff --git a/modals/asset_interface_multiple_add_modal.php b/modals/asset_interface_multiple_add_modal.php index 18958b52..2fc707cd 100644 --- a/modals/asset_interface_multiple_add_modal.php +++ b/modals/asset_interface_multiple_add_modal.php @@ -21,7 +21,7 @@
- +