Changeset 3402055
- Timestamp:
- 11/24/2025 07:22:57 PM (3 months ago)
- Location:
- allaccessible/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
inc/WidgetCustomizer.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
allaccessible/trunk/README.txt
r3401054 r3402055 6 6 Requires at least: 5.0 7 7 Tested up to: 6.8.2 8 Stable tag: 2.0. 18 Stable tag: 2.0.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 167 167 168 168 == Changelog == 169 170 = 2.0.2 = 171 * Bug Fixes 169 172 170 173 = 2.0.1 = -
allaccessible/trunk/inc/WidgetCustomizer.php
r3401054 r3402055 24 24 return; 25 25 } 26 27 // Get correct subdomain ID from validate response 28 $subdomain_id = $site_options->subID ?? get_option('aacb_siteID'); 26 29 27 30 // Extract current values … … 97 100 <form id="aacb-widget-settings-form"> 98 101 <input type="hidden" name="accountID" value="<?php echo esc_attr(get_option('aacb_accountID')); ?>"> 99 <input type="hidden" name="s iteID" value="<?php echo esc_attr(get_option('aacb_siteID')); ?>">102 <input type="hidden" name="subdomainID" value="<?php echo esc_attr($subdomain_id); ?>"> 100 103 101 104 <div class="aacx-space-y-8"> … … 428 431 e.preventDefault(); 429 432 433 const subdomainID = $('input[name="subdomainID"]').val(); 434 435 if (!subdomainID) { 436 console.error('❌ Cannot save - no subdomain ID found'); 437 $('#save-status').addClass('aacx-hidden'); 438 $('#save-error').removeClass('aacx-hidden').text('Error: Missing subdomain ID. Please refresh and try again.'); 439 $('#save-widget-settings').prop('disabled', false); 440 return; 441 } 442 430 443 const formData = { 431 444 accountID: $('input[name="accountID"]').val(), 432 s iteID: $('input[name="siteID"]').val(),445 subdomainID: subdomainID, 433 446 triggerBtnBg: $('input[name="triggerBtnBg"]').val(), 434 447 buttonPosition: $('select[name="buttonPosition"]').val(), … … 446 459 $('#save-error').addClass('aacx-hidden'); 447 460 448 // Call save-site-options API 461 // Call save-site-options API with subdomain ID 449 462 $.ajax({ 450 url: 'https://api.allaccessible.org/save-site-options ',463 url: 'https://api.allaccessible.org/save-site-options/' + subdomainID, 451 464 method: 'POST', 452 465 contentType: 'application/json',
Note: See TracChangeset
for help on using the changeset viewer.