Changeset 3495138
- Timestamp:
- 03/31/2026 05:22:59 AM (4 days ago)
- Location:
- authyo-otp-for-contact-form-7/trunk
- Files:
-
- 3 edited
-
assets/js/admin.js (modified) (2 diffs)
-
authyo-otp-for-contact-form-7.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
authyo-otp-for-contact-form-7/trunk/assets/js/admin.js
r3493287 r3495138 1152 1152 // Focus/Click on search input 1153 1153 countrySearch.addEventListener('focus', function () { 1154 // Always show dropdown container so any messages (even errors) are visible 1155 countryDropdown.style.display = 'block'; 1156 isDropdownOpen = true; 1157 1154 1158 if (allCountriesData.length === 0) { 1155 1159 console.warn('Authyo CF7: No countries data available. Please refresh the country list.'); 1156 countryDropdownList.innerHTML = '<div style="padding: 15px; text-align: center; color: #d63638;">No countries available. Please refresh the country list first.</div>'; 1160 countryDropdownList.innerHTML = '<div style="padding: 15px; text-align: center; color: #d63638; font-weight: 500; border: 1px solid #f5c2c7; background: #f8d7da; border-radius: 4px; margin: 10px;">' + 1161 '<span class="dashicons dashicons-warning" style="vertical-align: middle; margin-right: 5px;"></span>' + 1162 'No countries available. Please refresh the country list in the "Country Selector Data" card above.</div>'; 1157 1163 return; 1158 1164 } 1159 1165 1160 countryDropdown.style.display = 'block';1161 isDropdownOpen = true;1162 1166 renderCountryDropdown(this.value); 1163 1167 }); … … 1165 1169 // Search as you type 1166 1170 countrySearch.addEventListener('input', function () { 1167 renderCountryDropdown(this.value);1171 // Always show dropdown container 1168 1172 if (!isDropdownOpen) { 1169 1173 countryDropdown.style.display = 'block'; 1170 1174 isDropdownOpen = true; 1171 1175 } 1176 1177 if (allCountriesData.length === 0) { 1178 // Keep showing the error message 1179 return; 1180 } 1181 1182 renderCountryDropdown(this.value); 1172 1183 }); 1173 1184 -
authyo-otp-for-contact-form-7/trunk/authyo-otp-for-contact-form-7.php
r3493287 r3495138 4 4 * Plugin URI: https://wordpress.org/plugins/authyo-otp-for-contact-form-7/ 5 5 * Description: Adds OTP verification via Authyo (Email, SMS, WhatsApp, Voice Call) to Contact Form 7 submissions for secure form validation. 6 * Version: 1.0.2 26 * Version: 1.0.23 7 7 * Author: Authyo 8 8 * Author URI: https://authyo.io/ … … 18 18 exit; 19 19 20 define('AUTHYO_CF7_VERSION', '1.0.2 2');20 define('AUTHYO_CF7_VERSION', '1.0.23'); 21 21 define('AUTHYO_CF7_FILE', __FILE__); 22 22 define('AUTHYO_CF7_PATH', plugin_dir_path(__FILE__)); … … 275 275 foreach ($all_countries as $country) { 276 276 $code = $country['code'] ?? $country['countryIso'] ?? $country['countryCode'] ?? $country['iso'] ?? ''; 277 $name = $country['name'] ?? $country['countryName'] ?? ''; 278 $dial_code = $country['dial_code'] ?? $country['dialCode'] ?? $country['phoneCode'] ?? $country['phone_code'] ?? ''; 279 if (!empty($code) && !empty($name)) { 277 $name = $country['name'] ?? $country['countryName'] ?? 'Unknown'; 278 $dial = $country['dial_code'] ?? $country['dialCode'] ?? $country['phoneCode'] ?? $country['phone_code'] ?? ''; 279 280 if ($code && $name !== 'Unknown') { 280 281 $countries_json[] = [ 281 282 'code' => $code, 282 283 'name' => $name, 283 'dial_code' => $dial _code284 'dial_code' => $dial 284 285 ]; 285 286 } -
authyo-otp-for-contact-form-7/trunk/readme.txt
r3493287 r3495138 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.0.2 27 Stable tag: 1.0.23 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 88 88 89 89 == Changelog == 90 = 1.0.23 = 91 * Improvement: performance improvement 92 90 93 = 1.0.22 = 91 94 * UI/UX: Fixed country dropdown initialization and improved dropdown styling and behavior.
Note: See TracChangeset
for help on using the changeset viewer.