Skip to content

Commit 08b8c00

Browse files
svfcodeGlomberg
andauthored
Upd. Integrations. Elementor UltimateAddons Register integration handler to use ajax middleware. (#725)
* Upd. Integrations. Elementor UltimateAddons Register integration handler to use ajax middleware. * Fix. Code. Re-minified JS. --------- Co-authored-by: Glomberg <bazz@bk.ru>
1 parent 8fde590 commit 08b8c00

18 files changed

+72
-31
lines changed

js/apbct-public-bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_int-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_int-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/prebuild/apbct-public-bundle.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,7 +2831,6 @@ class ApbctHandler {
28312831
* @return {void}
28322832
*/
28332833
detectForcedAltCookiesForms() {
2834-
let elementorUltimateAddonsRegister = document.querySelectorAll('.uael-registration-form-wrapper').length > 0;
28352834
let smartFormsSign = document.querySelectorAll('script[id*="smart-forms"]').length > 0;
28362835
let jetpackCommentsForm = document.querySelectorAll('iframe[name="jetpack_remote_comment"]').length > 0;
28372836
let userRegistrationProForm = document.querySelectorAll('div[id^="user-registration-form"]').length > 0;
@@ -2843,7 +2842,6 @@ class ApbctHandler {
28432842
let smartQuizBuilder = document.querySelectorAll('form .sqbform, .fields_reorder_enabled').length > 0;
28442843
ctPublic.force_alt_cookies = smartFormsSign ||
28452844
jetpackCommentsForm ||
2846-
elementorUltimateAddonsRegister ||
28472845
userRegistrationProForm ||
28482846
etPbDiviSubscriptionForm ||
28492847
fluentBookingApp ||
@@ -3269,6 +3267,13 @@ class ApbctHandler {
32693267
sourceSign.keepUnwrapped = true;
32703268
sourceSign.attachVisibleFieldsData = true;
32713269
}
3270+
if (
3271+
settings.data.indexOf('action=uael_register_user') !== -1 &&
3272+
ctPublic.data__cookies_type === 'none'
3273+
) {
3274+
sourceSign.found = 'action=uael_register_user';
3275+
sourceSign.keepUnwrapped = true;
3276+
}
32723277
}
32733278
if ( typeof settings.url === 'string' ) {
32743279
if (settings.url.indexOf('wc-ajax=add_to_cart') !== -1) {

js/prebuild/apbct-public-bundle_ext-protection.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,7 +2831,6 @@ class ApbctHandler {
28312831
* @return {void}
28322832
*/
28332833
detectForcedAltCookiesForms() {
2834-
let elementorUltimateAddonsRegister = document.querySelectorAll('.uael-registration-form-wrapper').length > 0;
28352834
let smartFormsSign = document.querySelectorAll('script[id*="smart-forms"]').length > 0;
28362835
let jetpackCommentsForm = document.querySelectorAll('iframe[name="jetpack_remote_comment"]').length > 0;
28372836
let userRegistrationProForm = document.querySelectorAll('div[id^="user-registration-form"]').length > 0;
@@ -2843,7 +2842,6 @@ class ApbctHandler {
28432842
let smartQuizBuilder = document.querySelectorAll('form .sqbform, .fields_reorder_enabled').length > 0;
28442843
ctPublic.force_alt_cookies = smartFormsSign ||
28452844
jetpackCommentsForm ||
2846-
elementorUltimateAddonsRegister ||
28472845
userRegistrationProForm ||
28482846
etPbDiviSubscriptionForm ||
28492847
fluentBookingApp ||
@@ -3269,6 +3267,13 @@ class ApbctHandler {
32693267
sourceSign.keepUnwrapped = true;
32703268
sourceSign.attachVisibleFieldsData = true;
32713269
}
3270+
if (
3271+
settings.data.indexOf('action=uael_register_user') !== -1 &&
3272+
ctPublic.data__cookies_type === 'none'
3273+
) {
3274+
sourceSign.found = 'action=uael_register_user';
3275+
sourceSign.keepUnwrapped = true;
3276+
}
32723277
}
32733278
if ( typeof settings.url === 'string' ) {
32743279
if (settings.url.indexOf('wc-ajax=add_to_cart') !== -1) {

0 commit comments

Comments
 (0)